mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 12:13:33 +08:00
bash-completion: systemd-analyze: add service-watchdogs verb
This commit is contained in:
parent
889d695d6c
commit
21a6abdf0e
@ -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") )
|
||||
|
Loading…
Reference in New Issue
Block a user