]> git.ipfire.org Git - thirdparty/systemd.git/blob - shell-completion/zsh/_systemd
Merge pull request #6365 from keszybz/fast-tests
[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]:icon name:' \
9 '--timeout=[Timeout in sec]:timeout (seconds):' \
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.]: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 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]:delay:' \
42 {-n+,--iterations=}'[Run for N iterations before exiting]:number of iterations:' \
43 {-b,--batch}'[Run in batch mode, accepting no input]' \
44 '--depth=[Maximum traversal depth]:maximum 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]:daemon main PID:_pids' \
65 '--status=[Send a free-form status string for the daemon to the init systemd]:status string:' \
66 '--booted[Returns 0 if the system was booted up with systemd]'
67 ;;
68 systemd-tty-ask-password-agent)
69 _arguments \
70 {-h,--help}'[Prints a short help text and exits.]' \
71 '--version[Prints a short version string and exits.]' \
72 '--list[Lists all currently pending system password requests.]' \
73 '--query[Process all currently pending system password requests by querying the user on the calling TTY.]' \
74 '--watch[Continuously process password requests.]' \
75 '--wall[Forward password requests to wall(1).]' \
76 '--plymouth[Ask question with plymouth(8).]' \
77 '--console[Ask question on /dev/console.]'
78 ;;
79 *) _message 'eh?' ;;
80 esac
81
82 #vim: set ft=zsh sw=4 ts=4 et