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