mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-07 14:14:35 +00:00
shell-completion: dump has moved to systemd-analyze
Rename NO_OPTION to STANDALONE for consistency with other files. Conflicts: shell-completion/zsh/_systemctl shell-completion/zsh/_systemd-analyze
This commit is contained in:
@@ -131,7 +131,7 @@ _systemctl () {
|
||||
[JOBS]='cancel'
|
||||
[SNAPSHOTS]='delete'
|
||||
[ENVS]='set-environment unset-environment'
|
||||
[STANDALONE]='daemon-reexec daemon-reload default dump
|
||||
[STANDALONE]='daemon-reexec daemon-reload default
|
||||
emergency exit halt hibernate hybrid-sleep kexec list-jobs
|
||||
list-sockets list-units list-unit-files poweroff reboot rescue
|
||||
show-environment suspend'
|
||||
|
||||
@@ -30,7 +30,7 @@ _systemd_analyze() {
|
||||
local OPTS='--help --version --system --user --from-pattern --to-pattern --order --require'
|
||||
|
||||
local -A VERBS=(
|
||||
[NO_OPTION]='time blame plot'
|
||||
[STANDALONE]='time blame plot dump'
|
||||
[CRITICAL_CHAIN]='critical-chain'
|
||||
[DOT]='dot'
|
||||
)
|
||||
@@ -53,7 +53,7 @@ _systemd_analyze() {
|
||||
if [[ -z $verb ]]; then
|
||||
comps=${VERBS[*]}
|
||||
|
||||
elif __contains_word "$verb" ${VERBS[NO_OPTION]}; then
|
||||
elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
|
||||
if [[ $cur = -* ]]; then
|
||||
comps='--help --version --system --user'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user