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