chiark / gitweb /
shell-completion: dump has moved to systemd-analyze
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Oct 2013 22:53:57 +0000 (18:53 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Oct 2013 22:53:57 +0000 (18:53 -0400)
Rename NO_OPTION to STANDALONE for consistency with other files.

shell-completion/bash/systemctl
shell-completion/bash/systemd-analyze
shell-completion/zsh/_systemctl
shell-completion/zsh/_systemd-analyze

index e335ee871c97d103a51a83aa5572e7ea8bc9ea6c..eea4b6dbf95317150e6daa9e13124c801f209f64 100644 (file)
@@ -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'
index 5bd676866b425eebe6a7ef41bc72089ea101c8af..b65466ba47535d625b0aa62fc0c620ee642607d1 100644 (file)
@@ -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
index 298e97ed61aa93cce4281764abdebe8e2981b4b5..3959cd551ca43bf262cebda6cd95544d023d99c6 100644 (file)
@@ -38,7 +38,6 @@
     "is-enabled:Check whether unit files are enabled"
     "list-jobs:List jobs"
     "cancel:Cancel all, one, or more jobs"
-    "dump:Dump server status"
     "snapshot:Create a snapshot"
     "delete:Remove one or more snapshots"
     "show-environment:Dump environment"
@@ -264,7 +263,7 @@ done
 (( $+functions[_systemctl_link] )) || _systemctl_link() { _files }
 
 # no systemctl completion for:
-#    [STANDALONE]='daemon-reexec daemon-reload default dump
+#    [STANDALONE]='daemon-reexec daemon-reload default
 #                  emergency exit halt kexec list-jobs list-units
 #                  list-unit-files poweroff reboot rescue show-environment'
 #         [NAME]='snapshot load'
index 37c60f5b40f154288398f4d85a420611416f1c5e..2eda5fe8a94936d8dfa7a633492364841618d68c 100644 (file)
@@ -15,6 +15,7 @@ _systemd_analyze_command(){
         'critical-chain:Print a tree of the time critical chain of units'
         'plot:Output SVG graphic showing service initialization'
         'dot:Dump dependency graph (in dot(1) format)'
+        'dump:Dump server status'
         'set-log-level:Set systemd log threshold'
     )