mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-08-03 08:22:37 +03:00
shell-completion: add offline/root/image to systemd-analyze
This commit is contained in:
@ -145,14 +145,17 @@ _systemd_analyze() {
|
|||||||
|
|
||||||
elif __contains_word "$verb" ${VERBS[SECURITY]}; then
|
elif __contains_word "$verb" ${VERBS[SECURITY]}; then
|
||||||
if [[ $cur = -* ]]; then
|
if [[ $cur = -* ]]; then
|
||||||
comps='--help --version --no-pager --system --user -H --host -M --machine --offline --threshold --security-policy --json=off --json=pretty --json=short'
|
comps='--help --version --no-pager --system --user -H --host -M --machine --offline --threshold --security-policy --json=off --json=pretty --json=short --root --image'
|
||||||
else
|
elif ! __contains_word "--offline" ${COMP_WORDS[*]}; then
|
||||||
if __contains_word "--user" ${COMP_WORDS[*]}; then
|
if __contains_word "--user" ${COMP_WORDS[*]}; then
|
||||||
mode=--user
|
mode=--user
|
||||||
else
|
else
|
||||||
mode=--system
|
mode=--system
|
||||||
fi
|
fi
|
||||||
comps=$( __get_services $mode )
|
comps=$( __get_services $mode )
|
||||||
|
else
|
||||||
|
comps="$CONFIGS $( compgen -A file -- "$cur" )"
|
||||||
|
compopt -o filenames
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif __contains_word "$verb" ${VERBS[CONDITION]}; then
|
elif __contains_word "$verb" ${VERBS[CONDITION]}; then
|
||||||
|
Reference in New Issue
Block a user