]>
Commit | Line | Data |
---|---|---|
682e043c | 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 |
db9ecf05 | 2 | # SPDX-License-Identifier: LGPL-2.1-or-later |
553b9323 | 3 | |
24a02823 WG |
4 | local curcontext="$curcontext" state lstate line |
5 | case "$service" in | |
6 | systemd-ask-password) | |
7 | _arguments \ | |
20927c0e | 8 | '(- *)'{-h,--help}'[Show this help]' \ |
fb9d85b7 EC |
9 | '--icon=[Icon name]:icon name:' \ |
10 | '--timeout=[Timeout in sec]:timeout (seconds):' \ | |
24a02823 WG |
11 | '--no-tty[Ask question via agent even on TTY]' \ |
12 | '--accept-cached[Accept cached passwords]' \ | |
13 | '--multiple[List multiple passwords if available]' | |
843cfcb1 | 14 | ;; |
24a02823 WG |
15 | systemd-cat) |
16 | _arguments \ | |
20927c0e EK |
17 | '(- *)'{-h,--help}'[Show this help]' \ |
18 | '(- *)--version[Show package version.]' \ | |
19 | '(-t --identifier)'{-t+,--identifier=}'[Set syslog identifier.]:syslog identifier:' \ | |
20 | '(-p --priority)'{-p+,--priority=}'[Set priority value.]:value:({0..7})' \ | |
24a02823 | 21 | '--level-prefix=[Control whether level prefix shall be parsed.]:boolean:(1 0)' \ |
cd804013 | 22 | '--namespace=[Connect to specified journal namespace.]:journal namespace:' \ |
24a02823 | 23 | ':Message' |
843cfcb1 | 24 | ;; |
24a02823 WG |
25 | systemd-cgls) |
26 | _arguments \ | |
20927c0e EK |
27 | '(- *)'{-h,--help}'[Show this help]' \ |
28 | '(- *)--version[Show package version]' \ | |
24a02823 | 29 | '--no-pager[Do not pipe output into a pager]' \ |
20927c0e | 30 | '(-a --all)'{-a,--all}'[Show all groups, including empty]' \ |
24a02823 | 31 | '-k[Include kernel threads in output]' \ |
50f48ad3 | 32 | ':cgroups:(cpuset cpu cpuacct memory devices freezer blkio)' |
843cfcb1 | 33 | ;; |
24a02823 WG |
34 | systemd-cgtop) |
35 | _arguments \ | |
20927c0e EK |
36 | '(-)'{-h,--help}'[Show this help]' \ |
37 | '(-)--version[Print version and exit]' \ | |
24a02823 WG |
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]' \ | |
20927c0e EK |
43 | '(-d --delay)'{-d+,--delay=}'[Specify delay]:delay:' \ |
44 | '(-n --iterations)'{-n+,--iterations=}'[Run for N iterations before exiting]:number of iterations:' \ | |
45 | '(-b --batch)'{-b,--batch}'[Run in batch mode, accepting no input]' \ | |
fb9d85b7 | 46 | '--depth=[Maximum traversal depth]:maximum depth:' |
843cfcb1 | 47 | ;; |
24a02823 WG |
48 | systemd-detect-virt) |
49 | _arguments \ | |
20927c0e EK |
50 | '(-)'{-h,--help}'[Show this help]' \ |
51 | '(-)--version[Show package version]' \ | |
52 | '(-c --container)'{-c,--container}'[Only detect whether we are run in a container]' \ | |
53 | '(-v --vm)'{-v,--vm}'[Only detect whether we are run in a VM]' \ | |
54 | '(-q --quiet)'{-q,--quiet}"[Don't output anything, just set return value]" | |
843cfcb1 | 55 | ;; |
24a02823 WG |
56 | systemd-machine-id-setup) |
57 | _arguments \ | |
20927c0e EK |
58 | '(-)'{-h,--help}'[Show this help]' \ |
59 | '(-)--version[Show package version]' | |
843cfcb1 | 60 | ;; |
24a02823 WG |
61 | systemd-notify) |
62 | _arguments \ | |
20927c0e EK |
63 | '(-)'{-h,--help}'[Show this help]' \ |
64 | '(-)--version[Show package version]' \ | |
24a02823 | 65 | '--ready[Inform the init system about service start-up completion.]' \ |
fb9d85b7 EC |
66 | '--pid=[Inform the init system about the main PID of the daemon]:daemon main PID:_pids' \ |
67 | '--status=[Send a free-form status string for the daemon to the init systemd]:status string:' \ | |
d6bc8348 | 68 | '--booted[Returns 0 if the system was booted up with systemd]' |
843cfcb1 | 69 | ;; |
24a02823 WG |
70 | systemd-tty-ask-password-agent) |
71 | _arguments \ | |
20927c0e EK |
72 | '(-)'{-h,--help}'[Prints a short help text and exits.]' \ |
73 | '(-)--version[Prints a short version string and exits.]' \ | |
74 | '--list[Lists all currently pending system password requests.]' \ | |
24a02823 WG |
75 | '--query[Process all currently pending system password requests by querying the user on the calling TTY.]' \ |
76 | '--watch[Continuously process password requests.]' \ | |
77 | '--wall[Forward password requests to wall(1).]' \ | |
78 | '--plymouth[Ask question with plymouth(8).]' \ | |
79 | '--console[Ask question on /dev/console.]' | |
843cfcb1 | 80 | ;; |
24a02823 WG |
81 | *) _message 'eh?' ;; |
82 | esac |