mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 13:41:31 +00:00
shell-completion: dump has moved to systemd-analyze
Rename NO_OPTION to STANDALONE for consistency with other files.
This commit is contained in:
committed by
Colin Guthrie
parent
a2ea772c69
commit
cd8596ed35
@@ -137,7 +137,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 get-default'
|
||||
|
||||
@@ -31,7 +31,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'
|
||||
[LOG_LEVEL]='set-log-level'
|
||||
@@ -55,7 +55,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