richardphibel / rpms / systemd

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