]> git.ipfire.org Git - thirdparty/systemd.git/blame - shell-completion/zsh/_systemd-analyze
coredumpctl: add more debug output
[thirdparty/systemd.git] / shell-completion / zsh / _systemd-analyze
CommitLineData
7abfbe79
WG
1#compdef systemd-analyze
2
3_systemd_analyze_command(){
4 local -a _systemd_analyze_cmds
5 # Descriptions taken from systemd-analyze --help.
6 _systemd_analyze_cmds=(
7 'time:Print time spent in the kernel before reaching userspace'
8 'blame:Print list of running units ordered by time to init'
9 'critical-chain:Print a tree of the time critical chain of units'
10 'plot:Output SVG graphic showing service initialization'
11 'dot:Dump dependency graph (in dot(1) format)'
12 )
13
14 if (( CURRENT == 1 )); then
15 _describe "options" _systemd_analyze_cmds
16 else
17 _message "no more options"
18 fi
19}
20
21_arguments \
22 {-h,--help}'[Show help text.]' \
23 '--user[Shows performance data of user sessions instead of the system manager.]' \
24 '--order[When generating graph for dot, show only order]' \
25 '--require[When generating graph for dot, show only requirement]' \
26 '*::systemd-analyze commands:_systemd_analyze_command'