]>
Commit | Line | Data |
---|---|---|
c1072f64 | 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 -*- shell-script -*- |
7059062c | 2 | # SPDX-License-Identifier: LGPL-2.1+ |
553b9323 | 3 | |
24a02823 WG |
4 | local curcontext="$curcontext" state lstate line |
5 | case "$service" in | |
6 | systemd-ask-password) | |
7 | _arguments \ | |
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 \ | |
17 | {-h,--help}'[Show this help]' \ | |
18 | '--version[Show package version.]' \ | |
fb9d85b7 | 19 | {-t+,--identifier=}'[Set syslog identifier.]:syslog identifier:' \ |
862f4963 | 20 | {-p+,--priority=}'[Set priority value.]:value:({0..7})' \ |
24a02823 WG |
21 | '--level-prefix=[Control whether level prefix shall be parsed.]:boolean:(1 0)' \ |
22 | ':Message' | |
843cfcb1 | 23 | ;; |
24a02823 WG |
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]' \ | |
50f48ad3 | 31 | ':cgroups:(cpuset cpu cpuacct memory devices freezer blkio)' |
843cfcb1 | 32 | ;; |
24a02823 WG |
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]' \ | |
fb9d85b7 EC |
42 | {-d+,--delay=}'[Specify delay]:delay:' \ |
43 | {-n+,--iterations=}'[Run for N iterations before exiting]:number of iterations:' \ | |
24a02823 | 44 | {-b,--batch}'[Run in batch mode, accepting no input]' \ |
fb9d85b7 | 45 | '--depth=[Maximum traversal depth]:maximum depth:' |
843cfcb1 | 46 | ;; |
24a02823 WG |
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]" | |
843cfcb1 | 54 | ;; |
24a02823 WG |
55 | systemd-machine-id-setup) |
56 | _arguments \ | |
57 | {-h,--help}'[Show this help]' \ | |
58 | '--version[Show package version]' | |
843cfcb1 | 59 | ;; |
24a02823 WG |
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.]' \ | |
fb9d85b7 EC |
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:' \ | |
d6bc8348 | 67 | '--booted[Returns 0 if the system was booted up with systemd]' |
843cfcb1 | 68 | ;; |
24a02823 WG |
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.]' | |
843cfcb1 | 79 | ;; |
24a02823 WG |
80 | *) _message 'eh?' ;; |
81 | esac |