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