From: Jan Klötzke Date: Mon, 22 Jan 2018 20:39:57 +0000 (+0100) Subject: bash-completion: systemd-analyze: add service-watchdogs verb X-Git-Tag: v237~46^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21a6abdf0ea9ce1fa5b6edf3b9314347cc0dbca1;p=thirdparty%2Fsystemd.git bash-completion: systemd-analyze: add service-watchdogs verb --- diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze index 34d274bb4f6..171802e8856 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") )