| # SPDX-License-Identifier: LGPL-2.1-or-later |
| (( $+functions[_oomctl_commands] )) || _oomctl_commands() |
| "dump:Show the current state of cgroups and system contexts" |
| "help:Prints a short help text and exits." |
| if (( CURRENT == 1 )); then |
| _describe -t commands 'oomctl command' _oomctl_cmds |
| local curcontext="$curcontext" |
| cmd="${${_oomctl_cmds[(r)$words[1]:*]%%:*}}" |
| if (( $+functions[_oomctl_$cmd] )); then |
| _message "no more options" |
| {-h,--help}'[Prints a short help text and exits.]' \ |
| '--version[Prints a short version string and exits.]' \ |
| '--no-pager[Do not pipe output into a pager]' \ |
| '*::oomctl command:_oomctl_commands' |