summaryrefslogtreecommitdiff
path: root/src/systemd-cgtop/systemd-cgtop.completion.zsh
blob: f6e1b2422a59ea9c9464f5f61b31c116154c1d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#compdef systemd-cgtop

local curcontext="$curcontext" state lstate line
_arguments \
    {-h,--help}'[Show this help]' \
    '--version[Print version and exit]' \
    '(-c -m -i -t)-p[Order by path]' \
    '(-c -p -m -i)-t[Order by number of tasks]' \
    '(-m -p -i -t)-c[Order by CPU load]' \
    '(-c -p -i -t)-m[Order by memory load]' \
    '(-c -m -p -t)-i[Order by IO load]' \
    {-d+,--delay=}'[Specify delay]:delay:' \
    {-n+,--iterations=}'[Run for N iterations before exiting]:number of iterations:' \
    {-b,--batch}'[Run in batch mode, accepting no input]' \
    '--depth=[Maximum traversal depth]:maximum depth:'

#vim: set ft=zsh sw=4 ts=4 et