]> git.ipfire.org Git - thirdparty/systemd.git/blame - shell-completion/zsh/_systemd
coredumpctl: add more debug output
[thirdparty/systemd.git] / shell-completion / zsh / _systemd
CommitLineData
1272ff85 1#compdef systemd-cat systemd-ask-password systemd-cgls systemd-cgtop systemd-delta systemd-detect-virt systemd-machine-id-setup systemd-notify systemd-tty-ask-password-agent
553b9323
DW
2
3_ctls()
4{
5 local curcontext="$curcontext" state lstate line
6 case "$service" in
553b9323
DW
7 systemd-ask-password)
8 _arguments \
9 {-h,--help}'[Show this help]' \
10 '--icon=[Icon name]' \
11 '--timeout=[Timeout in sec]' \
12 '--no-tty[Ask question via agent even on TTY]' \
13 '--accept-cached[Accept cached passwords]' \
14 '--multiple[List multiple passwords if available]'
15 ;;
16 systemd-cat)
17 _arguments \
18 {-h,--help}'[Show this help]' \
19 '--version[Show package version.]' \
20 {-t,--identifier=}'[Set syslog identifier.]' \
21 {-p,--priority=}'[Set priority value.]:value:({0..7})' \
22 '--level-prefix=[Control whether level prefix shall be parsed.]:boolean:(1 0)' \
23 ':Message'
24 ;;
25 systemd-cgls)
26 _arguments \
27 {-h,--help}'[Show this help]' \
28 '--version[Show package version]' \
29 '--no-pager[Do not pipe output into a pager]' \
30 {-a,--all}'[Show all groups, including empty]' \
31 '-k[Include kernel threads in output]' \
32 ':cgroups:(cpuset cpu cpuacct memory devices freezer net_cls blkio)'
33 ;;
34 systemd-cgtop)
35 _arguments \
36 {-h,--help}'[Show this help]' \
37 '--version[Print version and exit]' \
38 '(-c -m -i -t)-p[Order by path]' \
39 '(-c -p -m -i)-t[Order by number of tasks]' \
40 '(-m -p -i -t)-c[Order by CPU load]' \
41 '(-c -p -i -t)-m[Order by memory load]' \
42 '(-c -m -p -t)-i[Order by IO load]' \
43 {-d,--delay=}'[Specify delay]' \
44 {-n,--iterations=}'[Run for N iterations before exiting]' \
45 {-b,--batch}'[Run in batch mode, accepting no input]' \
46 '--depth=[Maximum traversal depth]'
47 ;;
48 systemd-delta)
49 _arguments \
50 {-h,--help}'[Show this help]' \
51 '--version[Show package version]' \
52 '--no-pager[Do not pipe output into a pager]' \
53 '--diff=[Show a diff when overridden files differ]:boolean:(1 0)' \
54 {-t,--type=}'[Only display a selected set of override types]:types:(masked equivalent redirected overridden unchanged)' \
55 ':SUFFIX:(tmpfiles.d sysctl.d systemd/system)'
56 ;;
57 systemd-detect-virt)
58 _arguments \
59 {-h,--help}'[Show this help]' \
60 '--version[Show package version]' \
61 {-c,--container}'[Only detect whether we are run in a container]' \
62 {-v,--vm}'[Only detect whether we are run in a VM]' \
63 {-q,--quiet}"[Don't output anything, just set return value]"
64 ;;
553b9323
DW
65 systemd-machine-id-setup)
66 _arguments \
67 {-h,--help}'[Show this help]' \
68 '--version[Show package version]'
69 ;;
70 systemd-notify)
71 _arguments \
72 {-h,--help}'[Show this help]' \
73 '--version[Show package version]' \
74 '--ready[Inform the init system about service start-up completion.]' \
75 '--pid=[Inform the init system about the main PID of the daemon]' \
76 '--status=[Send a free-form status string for the daemon to the init systemd]' \
77 '--booted[Returns 0 if the system was booted up with systemd]' \
78 '--readahead=[Controls disk read-ahead operations]:arguments:(cancel done noreply)'
79 ;;
553b9323
DW
80 systemd-tty-ask-password-agent)
81 _arguments \
82 {-h,--help}'[Prints a short help text and exits.]' \
83 '--version[Prints a short version string and exits.]' \
84 '--list[Lists all currently pending system password requests.]' \
85 '--query[Process all currently pending system password requests by querying the user on the calling TTY.]' \
86 '--watch[Continuously process password requests.]' \
87 '--wall[Forward password requests to wall(1).]' \
88 '--plymouth[Ask question with plymouth(8).]' \
89 '--console[Ask question on /dev/console.]'
90 ;;
91 *) _message 'eh?' ;;
92 esac
93}
94
553b9323
DW
95_ctls "$@"
96
97#vim: set ft=zsh sw=4 ts=4 et