diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2020-04-27 08:16:55 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-04-27 08:40:15 +0200 |
commit | 4b6d94a1e59b75c8623a0eaea49cc7ff26c8b820 (patch) | |
tree | 5987ecdff3d16986e1dd37720bdacea0de33ecc9 /shell-completion/zsh | |
parent | zsh: fix disable/enable completion (diff) | |
download | systemd-4b6d94a1e59b75c8623a0eaea49cc7ff26c8b820.tar.xz systemd-4b6d94a1e59b75c8623a0eaea49cc7ff26c8b820.zip |
shell-completion/zsh: update systemd-analyze completions
Diffstat (limited to 'shell-completion/zsh')
-rw-r--r-- | shell-completion/zsh/_systemd-analyze | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze index 89ba46c959..75e72439fd 100644 --- a/shell-completion/zsh/_systemd-analyze +++ b/shell-completion/zsh/_systemd-analyze @@ -27,6 +27,16 @@ _describe -t state 'state' _states || compadd "$@" } +(( $+functions[_systemd-analyze_cat-config] )) || + _systemd-analyze_cat-config() { + _files -W '(/run/systemd/ /etc/systemd/ /usr/lib/systemd/)' -P 'systemd/' + } + +(( $+functions[_systemd-analyze_security] )) || + _systemd-analyze_security() { + _sd_unit_files + } + (( $+functions[_systemd-analyze_commands] )) || _systemd-analyze_commands(){ local -a _systemd_analyze_cmds @@ -38,13 +48,20 @@ 'plot:Output SVG graphic showing service initialization' 'dot:Dump dependency graph (in dot(1) format)' 'dump:Dump server status' + 'cat-config:Cat systemd config files' + 'unit-files:List files and symlinks for units' 'unit-paths:List unit load paths' - 'log-level:Get/set systemd log threshold' - 'log-target:Get/set systemd log target' - 'service-watchdogs:Get/set service watchdog status' + 'exit-status:List known exit statuses' 'syscall-filter:List syscalls in seccomp filter' + 'condition:Evaluate Condition*= and Assert*= assignments' 'verify:Check unit files for correctness' 'calendar:Validate repetitive calendar time events' + 'timestamp:Parse a systemd syntax timestamp' + 'timespan:Parse a systemd syntax timespan' + 'security:Analyze security settings of a service' + # 'log-level:Get/set systemd log threshold' + # 'log-target:Get/set systemd log target' + # 'service-watchdogs:Get/set service watchdog status' ) if (( CURRENT == 1 )); then |