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