summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-24 07:43:41 +0300
committerLennart Poettering <lennart@poettering.net>2018-01-26 15:24:09 +0100
commitdba081db312affb60be0a0b2a95433e832342334 (patch)
tree4c5b0a0d1fcfec9925b629999baa32a13461078e /shell-completion
parent6cddc79251dfae446ebe17aa9fbe99e76b9238be (diff)
downloadsystemd-dba081db312affb60be0a0b2a95433e832342334.tar.gz
zsh: add service-watchdogs
A zsh counterpart to 21a6abdf0ea9ce1fa5b6edf3b9314347cc0dbca1.
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/zsh/_systemd-analyze7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze
index ce22217fbc..85e46dca45 100644
--- a/shell-completion/zsh/_systemd-analyze
+++ b/shell-completion/zsh/_systemd-analyze
@@ -17,6 +17,12 @@ _systemd_analyze_verify() {
_sd_unit_files
}
+_systemd_analyze_service-watchdogs() {
+ local -a _states
+ _states=(on off)
+ _describe -t state 'state' _states || compadd "$@"
+}
+
_systemd_analyze_command(){
local -a _systemd_analyze_cmds
# Descriptions taken from systemd-analyze --help.
@@ -31,6 +37,7 @@ _systemd_analyze_command(){
'set-log-target:Set systemd log target'
'get-log-level:Get systemd log threshold'
'get-log-target:Get systemd log target'
+ 'service-watchdogs:Get/set service watchdog status'
'syscall-filter:List syscalls in seccomp filter'
'verify:Check unit files for correctness'
)