summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-04-29 22:02:57 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-01 09:59:24 -0400
commit96de7c047f23eb07af0844de8d450530d56f8dfb (patch)
treeb23e0c1d4d436ed971706ee403174e38cc83aa1e
parenta432cb691ca3c1e18b012cb8e9f6e5654b3652a2 (diff)
zsh-completion: add s-a critical-chain
-rw-r--r--shell-completion/systemd-zsh-completion.zsh10
-rw-r--r--src/analyze/systemd-analyze.c4
2 files changed, 10 insertions, 4 deletions
diff --git a/shell-completion/systemd-zsh-completion.zsh b/shell-completion/systemd-zsh-completion.zsh
index 73db3786d6..a30fcf8c05 100644
--- a/shell-completion/systemd-zsh-completion.zsh
+++ b/shell-completion/systemd-zsh-completion.zsh
@@ -294,11 +294,13 @@ _systemd_inhibit_command(){
_systemd_analyze_command(){
local -a _systemd_analyze_cmds
+ # Descriptions taken from systemd-analyze --help.
_systemd_analyze_cmds=(
- 'time:Print the time taken to start'
- 'blame:prints a list of all running units, ordered by the time they took to initialize'
- 'plot:prints an SVG graphic detailing which system services have been started at what time'
- 'dot:Dump dependency graph for dot(1)'
+ 'time:Print time spent in the kernel before reaching userspace'
+ 'blame:Print list of running units ordered by time to init'
+ 'critical-chain:Print a tree of the time critical chain of units'
+ 'plot:Output SVG graphic showing service initialization'
+ 'dot:Dump dependency graph (in dot(1) format)'
)
if (( CURRENT == 1 )); then
diff --git a/src/analyze/systemd-analyze.c b/src/analyze/systemd-analyze.c
index 14c07e409e..7f0b69c5a1 100644
--- a/src/analyze/systemd-analyze.c
+++ b/src/analyze/systemd-analyze.c
@@ -1137,6 +1137,10 @@ static void analyze_help(void)
" plot Output SVG graphic showing service initialization\n"
" dot Dump dependency graph (in dot(1) format)\n\n",
program_invocation_short_name);
+
+ /* When updating this list, including descriptions, apply
+ * changes to shell-completion/bash/systemd and
+ * shell-completion/systemd-zsh-completion.zsh too. */
}
static int parse_argv(int argc, char *argv[])