summaryrefslogtreecommitdiffstats
path: root/shell-completion/bash
diff options
context:
space:
mode:
authorJan Klötzke <jan@kloetzke.net>2018-01-22 21:39:57 +0100
committerJan Klötzke <jan@kloetzke.net>2018-01-22 21:39:57 +0100
commit21a6abdf0ea9ce1fa5b6edf3b9314347cc0dbca1 (patch)
tree1f69ab05aa0477924780589eb0a2ac998927ed5b /shell-completion/bash
parentsystemd-analyze: add service-watchdogs verb (diff)
downloadsystemd-21a6abdf0ea9ce1fa5b6edf3b9314347cc0dbca1.tar.xz
systemd-21a6abdf0ea9ce1fa5b6edf3b9314347cc0dbca1.zip
bash-completion: systemd-analyze: add service-watchdogs verb
Diffstat (limited to 'shell-completion/bash')
-rw-r--r--shell-completion/bash/systemd-analyze8
1 files changed, 8 insertions, 0 deletions
diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze
index 34d274bb4f..171802e885 100644
--- a/shell-completion/bash/systemd-analyze
+++ b/shell-completion/bash/systemd-analyze
@@ -49,6 +49,7 @@ _systemd_analyze() {
[LOG_TARGET]='set-log-target'
[VERIFY]='verify'
[SECCOMP_FILTER]='syscall-filter'
+ [SERVICE_WATCHDOGS]='service-watchdogs'
)
_init_completion || return
@@ -124,6 +125,13 @@ _systemd_analyze() {
compopt -o filenames
fi
+ elif __contains_word "$verb" ${VERBS[SERVICE_WATCHDOGS]}; then
+ if [[ $cur = -* ]]; then
+ comps='--help --version --system --user'
+ else
+ comps='on off'
+ fi
+
fi
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )