a52f674
From cd8596ed35691c0fff2f527ca963c5e9de0ea4dc Mon Sep 17 00:00:00 2001
794d16c
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
794d16c
Date: Mon, 21 Oct 2013 18:53:57 -0400
794d16c
Subject: [PATCH] shell-completion: dump has moved to systemd-analyze
794d16c
794d16c
Rename NO_OPTION to STANDALONE for consistency with other files.
794d16c
---
794d16c
 shell-completion/bash/systemctl       | 2 +-
794d16c
 shell-completion/bash/systemd-analyze | 4 ++--
794d16c
 shell-completion/zsh/_systemctl       | 3 +--
794d16c
 shell-completion/zsh/_systemd-analyze | 1 +
794d16c
 4 files changed, 5 insertions(+), 5 deletions(-)
794d16c
794d16c
diff --git a/shell-completion/bash/systemctl b/shell-completion/bash/systemctl
794d16c
index e335ee8..eea4b6d 100644
794d16c
--- a/shell-completion/bash/systemctl
794d16c
+++ b/shell-completion/bash/systemctl
794d16c
@@ -137,7 +137,7 @@ _systemctl () {
794d16c
                      [JOBS]='cancel'
794d16c
                 [SNAPSHOTS]='delete'
794d16c
                      [ENVS]='set-environment unset-environment'
794d16c
-               [STANDALONE]='daemon-reexec daemon-reload default dump
794d16c
+               [STANDALONE]='daemon-reexec daemon-reload default
794d16c
                              emergency exit halt hibernate hybrid-sleep kexec list-jobs
794d16c
                              list-sockets list-units list-unit-files poweroff reboot rescue
794d16c
                              show-environment suspend get-default'
794d16c
diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze
794d16c
index 5bd6768..b65466b 100644
794d16c
--- a/shell-completion/bash/systemd-analyze
794d16c
+++ b/shell-completion/bash/systemd-analyze
794d16c
@@ -31,7 +31,7 @@ _systemd_analyze() {
794d16c
         local OPTS='--help --version --system --user --from-pattern --to-pattern --order --require'
794d16c
 
794d16c
         local -A VERBS=(
794d16c
-                [NO_OPTION]='time blame plot'
794d16c
+                [STANDALONE]='time blame plot dump'
794d16c
                 [CRITICAL_CHAIN]='critical-chain'
794d16c
                 [DOT]='dot'
794d16c
                 [LOG_LEVEL]='set-log-level'
794d16c
@@ -55,7 +55,7 @@ _systemd_analyze() {
794d16c
         if [[ -z $verb ]]; then
794d16c
                 comps=${VERBS[*]}
794d16c
 
794d16c
-        elif __contains_word "$verb" ${VERBS[NO_OPTION]}; then
794d16c
+        elif __contains_word "$verb" ${VERBS[STANDALONE]}; then
794d16c
                 if [[ $cur = -* ]]; then
794d16c
                         comps='--help --version --system --user'
794d16c
                 fi
794d16c
diff --git a/shell-completion/zsh/_systemctl b/shell-completion/zsh/_systemctl
794d16c
index 298e97e..3959cd5 100644
794d16c
--- a/shell-completion/zsh/_systemctl
794d16c
+++ b/shell-completion/zsh/_systemctl
794d16c
@@ -38,7 +38,6 @@
794d16c
     "is-enabled:Check whether unit files are enabled"
794d16c
     "list-jobs:List jobs"
794d16c
     "cancel:Cancel all, one, or more jobs"
794d16c
-    "dump:Dump server status"
794d16c
     "snapshot:Create a snapshot"
794d16c
     "delete:Remove one or more snapshots"
794d16c
     "show-environment:Dump environment"
794d16c
@@ -264,7 +263,7 @@ done
794d16c
 (( $+functions[_systemctl_link] )) || _systemctl_link() { _files }
794d16c
 
794d16c
 # no systemctl completion for:
794d16c
-#    [STANDALONE]='daemon-reexec daemon-reload default dump
794d16c
+#    [STANDALONE]='daemon-reexec daemon-reload default
794d16c
 #                  emergency exit halt kexec list-jobs list-units
794d16c
 #                  list-unit-files poweroff reboot rescue show-environment'
794d16c
 #         [NAME]='snapshot load'
794d16c
diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze
794d16c
index 37c60f5..2eda5fe 100644
794d16c
--- a/shell-completion/zsh/_systemd-analyze
794d16c
+++ b/shell-completion/zsh/_systemd-analyze
794d16c
@@ -15,6 +15,7 @@ _systemd_analyze_command(){
794d16c
         'critical-chain:Print a tree of the time critical chain of units'
794d16c
         'plot:Output SVG graphic showing service initialization'
794d16c
         'dot:Dump dependency graph (in dot(1) format)'
794d16c
+        'dump:Dump server status'
794d16c
         'set-log-level:Set systemd log threshold'
794d16c
     )
794d16c