]> git.ipfire.org Git - thirdparty/systemd.git/blob - shell-completion/zsh/_systemd
Add SPDX license headers to shell completion scripts
[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 # SPDX-License-Identifier: LGPL-2.1+
3
4 local curcontext="$curcontext" state lstate line
5 case "$service" in
6 systemd-ask-password)
7 _arguments \
8 {-h,--help}'[Show this help]' \
9 '--icon=[Icon name]:icon name:' \
10 '--timeout=[Timeout in sec]:timeout (seconds):' \
11 '--no-tty[Ask question via agent even on TTY]' \
12 '--accept-cached[Accept cached passwords]' \
13 '--multiple[List multiple passwords if available]'
14 ;;
15 systemd-cat)
16 _arguments \
17 {-h,--help}'[Show this help]' \
18 '--version[Show package version.]' \
19 {-t+,--identifier=}'[Set syslog identifier.]:syslog identifier:' \
20 {-p+,--priority=}'[Set priority value.]:value:({0..7})' \
21 '--level-prefix=[Control whether level prefix shall be parsed.]:boolean:(1 0)' \
22 ':Message'
23 ;;
24 systemd-cgls)
25 _arguments \
26 {-h,--help}'[Show this help]' \
27 '--version[Show package version]' \
28 '--no-pager[Do not pipe output into a pager]' \
29 {-a,--all}'[Show all groups, including empty]' \
30 '-k[Include kernel threads in output]' \
31 ':cgroups:(cpuset cpu cpuacct memory devices freezer blkio)'
32 ;;
33 systemd-cgtop)
34 _arguments \
35 {-h,--help}'[Show this help]' \
36 '--version[Print version and exit]' \
37 '(-c -m -i -t)-p[Order by path]' \
38 '(-c -p -m -i)-t[Order by number of tasks]' \
39 '(-m -p -i -t)-c[Order by CPU load]' \
40 '(-c -p -i -t)-m[Order by memory load]' \
41 '(-c -m -p -t)-i[Order by IO load]' \
42 {-d+,--delay=}'[Specify delay]:delay:' \
43 {-n+,--iterations=}'[Run for N iterations before exiting]:number of iterations:' \
44 {-b,--batch}'[Run in batch mode, accepting no input]' \
45 '--depth=[Maximum traversal depth]:maximum depth:'
46 ;;
47 systemd-detect-virt)
48 _arguments \
49 {-h,--help}'[Show this help]' \
50 '--version[Show package version]' \
51 {-c,--container}'[Only detect whether we are run in a container]' \
52 {-v,--vm}'[Only detect whether we are run in a VM]' \
53 {-q,--quiet}"[Don't output anything, just set return value]"
54 ;;
55 systemd-machine-id-setup)
56 _arguments \
57 {-h,--help}'[Show this help]' \
58 '--version[Show package version]'
59 ;;
60 systemd-notify)
61 _arguments \
62 {-h,--help}'[Show this help]' \
63 '--version[Show package version]' \
64 '--ready[Inform the init system about service start-up completion.]' \
65 '--pid=[Inform the init system about the main PID of the daemon]:daemon main PID:_pids' \
66 '--status=[Send a free-form status string for the daemon to the init systemd]:status string:' \
67 '--booted[Returns 0 if the system was booted up with systemd]'
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