summaryrefslogtreecommitdiff
path: root/shell-completion/zsh
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-01-27 21:51:32 +0900
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-01-27 13:51:32 +0100
commit90657286fcc2e76a6c76b2c7df6f20f222051c1f (patch)
tree9505d565329377545dcfc44cdfbedcf0944d280c /shell-completion/zsh
parent4c0d48109540a0ab567de425cc904f6612c4ad1c (diff)
downloadsystemd-90657286fcc2e76a6c76b2c7df6f20f222051c1f.tar.gz
analyze: merge {get,set}-log-{level,target} to log-{level,target} (#8020)
Also, service-watchdogs now shows current watchdog state when no optional argument is provided.
Diffstat (limited to 'shell-completion/zsh')
-rw-r--r--shell-completion/zsh/_systemd-analyze10
1 files changed, 4 insertions, 6 deletions
diff --git a/shell-completion/zsh/_systemd-analyze b/shell-completion/zsh/_systemd-analyze
index 85e46dca45..ae13f4bbde 100644
--- a/shell-completion/zsh/_systemd-analyze
+++ b/shell-completion/zsh/_systemd-analyze
@@ -1,13 +1,13 @@
#compdef systemd-analyze
# SPDX-License-Identifier: LGPL-2.1+
-_systemd_analyze_set-log-level() {
+_systemd_analyze_log-level() {
local -a _levels
_levels=(debug info notice warning err crit alert emerg)
_describe -t level 'logging level' _levels || compadd "$@"
}
-_systemd_analyze_set-log-target() {
+_systemd_analyze_log-target() {
local -a _targets
_targets=(console journal kmsg journal-or-kmsg null)
_describe -t target 'logging target' _targets || compadd "$@"
@@ -33,10 +33,8 @@ _systemd_analyze_command(){
'plot:Output SVG graphic showing service initialization'
'dot:Dump dependency graph (in dot(1) format)'
'dump:Dump server status'
- 'set-log-level:Set systemd log threshold'
- 'set-log-target:Set systemd log target'
- 'get-log-level:Get systemd log threshold'
- 'get-log-target:Get systemd log target'
+ 'log-level:Get/set systemd log threshold'
+ 'log-target:Get/set systemd log target'
'service-watchdogs:Get/set service watchdog status'
'syscall-filter:List syscalls in seccomp filter'
'verify:Check unit files for correctness'