]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: systemd-analyze: add service-watchdogs verb 7834/head
authorJan Klötzke <jan@kloetzke.net>
Mon, 22 Jan 2018 20:39:57 +0000 (21:39 +0100)
committerJan Klötzke <jan@kloetzke.net>
Mon, 22 Jan 2018 20:39:57 +0000 (21:39 +0100)
shell-completion/bash/systemd-analyze

index 34d274bb4f68da80ec385e09fa695476de3ae9b2..171802e885651da3c5bd59ca8af25e34236f8959 100644 (file)
@@ -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") )