zsh-completion: add s-a critical-chain

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-04-29 22:02:57 -04:00
parent a432cb691c
commit 96de7c047f
2 changed files with 10 additions and 4 deletions

View file

@ -294,11 +294,13 @@ _systemd_inhibit_command(){
_systemd_analyze_command(){ _systemd_analyze_command(){
local -a _systemd_analyze_cmds local -a _systemd_analyze_cmds
# Descriptions taken from systemd-analyze --help.
_systemd_analyze_cmds=( _systemd_analyze_cmds=(
'time:Print the time taken to start' 'time:Print time spent in the kernel before reaching userspace'
'blame:prints a list of all running units, ordered by the time they took to initialize' 'blame:Print list of running units ordered by time to init'
'plot:prints an SVG graphic detailing which system services have been started at what time' 'critical-chain:Print a tree of the time critical chain of units'
'dot:Dump dependency graph for dot(1)' 'plot:Output SVG graphic showing service initialization'
'dot:Dump dependency graph (in dot(1) format)'
) )
if (( CURRENT == 1 )); then if (( CURRENT == 1 )); then

View file

@ -1137,6 +1137,10 @@ static void analyze_help(void)
" plot Output SVG graphic showing service initialization\n" " plot Output SVG graphic showing service initialization\n"
" dot Dump dependency graph (in dot(1) format)\n\n", " dot Dump dependency graph (in dot(1) format)\n\n",
program_invocation_short_name); 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[]) static int parse_argv(int argc, char *argv[])