summaryrefslogtreecommitdiff
path: root/shell-completion
Commit message (Collapse)AuthorAgeFilesLines
* resolve: rename PrivateDNS to DNSOverTLSIwan Timmer2018-06-142-7/+7
| | | PrivateDNS is not considered a good name for this option, so rename it to DNSOverTLS
* Merge pull request #8863 from evelikov/shell-completion-fixesZbigniew Jędrzejewski-Szmek2018-06-132-48/+60
|\ | | | | Shell completion fixes/perf improvements
| * zsh-completion: systemctl: list template units only as neededEmil Velikov2018-06-111-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently the completion adds template units for commands such as is-active, is-failed, is-enabled, status, show and others. At the same time systemctl barfs at us, since an instanced template unit is needed. Follow the example list from bash-completion as to which commands should not list template units. Note: The above is observed regardless of DefaultInstance. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
| * shell-completion: systemctl: do not list template units in {re,}startEmil Velikov2018-06-112-6/+4
| | | | | | | | | | | | | | | | | | | | Template units lacking DefaultInstance cannot be enabled/disabled or started/restarted. By adding DefaultInstance the unit can be enabled/disabled but it still cannot be started/restarted. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
| * shell-completion: systemctl: pass current word to all list_unit*Emil Velikov2018-06-112-12/+12
| | | | | | | | | | | | | | | | Earlier patch added the current word to the performance critical paths. Here we add it to every place, for consistency sake. Suggested-by: Yu Watanabe (yuwata) Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
| * zsh-completion: systemctl: tweak --state list for startable unitsEmil Velikov2018-06-111-1/+1
| | | | | | | | | | | | | | | | | | This effectively ports over b1bdb6496c07fc4fcf3f0feae69b5ef89ae557d9 from the bash completion to zsh. Modulo the new function, since it's unrelated perf. improvement. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
| * zsh-completion: systemctl: pass only $PREFIX* to list-unit*Emil Velikov2018-06-111-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using a leading * and $SUFFIX produces misleading results. Let's imagine that one mistypes nect instead of netc, they will get a rather misleading completion like: sys-fs-fuse-connections.mount Not to mention that the execution time is up by ~1/3. time systemctl list-unit-files netctl* -> ~12ms time systemctl list-unit-files *netctl* -> ~17ms Furthermore more units are matched, leading to greater execution time of `systemctl show' in _filter_units_by_property Use only $PREFIX*, removing the leading * and trailing $SUFFIX*. Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
| * bash-completion: systemctl: pass current partial unit to list-unit*Emil Velikov2018-06-111-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pass the partial name of the unit file to list-unit-files and list-units. This allows for faster completion, since systemctl does not need to list all the unit files. For reference: - time systemctl list-unit-files -> ~200ms - time systemctl list-unit-files netctl* -> ~15ms - time systemctl list-units -> ~5ms - time systemctl list-units netctl* -> ~5ms While the list-units time itself is unaffected, now a shorter list is produced. Thus as we pass it to `systemctl show' (via __filter_units_by_properties) the execution time will be decreased even further. v2: Update list-units hunk in commit message, add quotes around $2* v3: Remove funky indentation, quote all $cur instances Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
| * bash-completion: systemctl: use systemctl --no-pagerEmil Velikov2018-06-111-1/+1
| | | | | | | | Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
* | bash-completion/resolvectl: support privatedns commandYu Watanabe2018-06-132-1/+22
|/
* bash-completion: add completion for portablectlYu Watanabe2018-05-282-1/+115
|
* bash-completion: also suggest template unit filesYu Watanabe2018-05-281-1/+8
| | | | Fixes #9041.
* zsh-completion: suggest bus properties instead of configuration items for ↵Zbigniew Jędrzejewski-Szmek2018-05-281-3/+1
| | | | 'systemctl -p'
* bash-completion: suggest bus properties instead of configuration items for ↵Yu Watanabe2018-05-281-7/+2
| | | | | | 'systemctl -p' Closes #5137.
* journalctl: add with-unit modeLuca Boccassi2018-05-252-2/+2
| | | | | | | | | | When dealing with a large number of template instances, for example when launching daemons per VRF, it is hard for operators to correlate log lines to arguments. Add a new with-unit mode which, if available, prefixes unit and user unit names when displaying its log messages instead of the syslog identifier. It will also use the full timestamp with timezones, like the short-full mode.
* Merge pull request #8981 from keszybz/ratelimit-and-dbusLennart Poettering2018-05-181-6/+13
|\ | | | | Ratelimit renaming and dbus error message fix
| * bash-completion: redirect introspection errors to nullZbigniew Jędrzejewski-Szmek2018-05-141-6/+13
| | | | | | | | | | If completion is attempted on an invalid path, busctl might respond with an error. This shouldn't be seen, introspection is supposed to just fail silently.
* | bash-completion: add missing options and commands of timedatectlYu Watanabe2018-05-151-2/+3
|/ | | | Follow-up for 6129ec852ee470a3682d55f87852ee7ccabb5520.
* bash-completion: analyze: support cat-config verbYu Watanabe2018-05-111-1/+18
| | | | Follow-up for 854a42fb2e9db1b9eaa381559d7671f2e9b3a0f1.
* bash-completion: analyze: add --no-pager for some verbsYu Watanabe2018-05-111-3/+3
|
* bash-completion: add completion for resolvectlYu Watanabe2018-04-192-0/+166
|
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-063-39/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* bash-completion: busctl: make variables localYu Watanabe2018-03-301-4/+4
|
* bash-completion: busctl: do not suggest "-" for signatureYu Watanabe2018-03-301-1/+1
| | | | Fixes #8371.
* bash-completion: busctl: suggests only writable properties for set-propertyYu Watanabe2018-03-301-2/+3
|
* Rename suspend-to-hibernate to suspend-then-hibernateMario Limonciello2018-03-282-2/+2
| | | | | Per some discussion with Gnome folks, they would prefer this name as it's more descriptive of what's happening.
* zsh-completion: add calendar to systemd-analyze (#8438)Doug Christman2018-03-131-1/+2
|
* Introduce suspend-to-hibernate (#8274)Mario Limonciello2018-03-082-2/+4
| | | | | | | | | | | | | | Suspend to Hibernate is a new sleep method that invokes suspend for a predefined period of time before automatically waking up and hibernating the system. It's similar to HybridSleep however there isn't a performance impact on every suspend cycle. It's intended to use with systems that may have a higher power drain in their supported suspend states to prevent battery and data loss over an extended suspend cycle. Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
* shell-completion: add --global and unit-pathsZbigniew Jędrzejewski-Szmek2018-02-092-5/+7
|
* Slightly improve performance of startable/restartable unit completion (#7839)dana2018-01-281-11/+10
|
* analyze: merge {get,set}-log-{level,target} to log-{level,target} (#8020)Yu Watanabe2018-01-272-9/+7
| | | | Also, service-watchdogs now shows current watchdog state when no optional argument is provided.
* zsh: add service-watchdogsZbigniew Jędrzejewski-Szmek2018-01-261-0/+7
| | | | A zsh counterpart to 21a6abdf0ea9ce1fa5b6edf3b9314347cc0dbca1.
* bash-completion: systemd-analyze: add service-watchdogs verbJan Klötzke2018-01-221-0/+8
|
* Merge pull request #7844 from yuwata/bash-completionZbigniew Jędrzejewski-Szmek2018-01-1518-66/+136
|\ | | | | update bash completions
| * bash-completion: timedatectl: suggests hostname and machine nameYu Watanabe2018-01-101-3/+11
| |
| * bash-completion: run: add missing optionsYu Watanabe2018-01-101-3/+4
| |
| * bash-completion: resolve: add missing optionsYu Watanabe2018-01-101-3/+17
| |
| * bash-completion: nspawn: add missing optionsYu Watanabe2018-01-101-9/+18
| |
| * bash-completion: detect-virt: add missing optionYu Watanabe2018-01-101-1/+2
| |
| * bash-completion: cgls: suggests unitsYu Watanabe2018-01-101-1/+15
| |
| * bash-completion: analyze: add missing options and verbsYu Watanabe2018-01-101-4/+5
| |
| * bash-completion: systemctl: add missing options and verbsYu Watanabe2018-01-101-6/+8
| |
| * bash-completion: networkctl: 'list' and 'lldp' can take linksYu Watanabe2018-01-101-2/+2
| |
| * bash-completion: machinectl: add missing options and verbsYu Watanabe2018-01-101-4/+15
| |
| * bash-completion: loginctl: add missing options and verbsYu Watanabe2018-01-101-5/+6
| |
| * bash-completion: localectl: add a missing option and verbsYu Watanabe2018-01-101-5/+8
| |
| * bash-completion: kernel-install: update default path to kernel imageYu Watanabe2018-01-101-1/+1
| |
| * bash-completion: journalctl add missing optionsYu Watanabe2018-01-101-9/+9
| | | | | | | | Also, this deprecates '--this-boot' option.
| * bash-completion: hostnamectl: add a missing optionYu Watanabe2018-01-101-1/+1
| |
| * bash-completion: coredumpctl: support more optionsYu Watanabe2018-01-101-4/+7
| |