]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - shell-completion/bash/systemd-cgtop
tree-wide: beautify remaining copyright statements
[thirdparty/systemd.git] / shell-completion / bash / systemd-cgtop
index eefb8fc5c456ee7a6b32c913cc4bb9a80fc29064..462234da3d1e03a94fa15e2aaa7ba7947c4f8b70 100644 (file)
@@ -1,8 +1,9 @@
 # systemd-cgtop(1) completion                  -*- shell-script -*-
+# SPDX-License-Identifier: LGPL-2.1+
 #
 # This file is part of systemd.
 #
-# Copyright 2014 Thomas H.P. Andersen
+# Copyright © 2014 Thomas H.P. Andersen
 #
 # systemd is free software; you can redistribute it and/or modify it
 # under the terms of the GNU Lesser General Public License as published by
@@ -34,8 +35,8 @@ _systemd_cgtop() {
         local comps
 
         local -A OPTS=(
-               [STANDALONE]='-h --help --version -p -t -c -m -i -b --batch -n --iterations -d --delay'
-               [ARG]='--cpu --depth -M --machine'
+               [STANDALONE]='-h --help --version -p -t -c -m -i -b --batch -r --raw -k -P'
+               [ARG]='--cpu --depth -M --machine --recursive -n --iterations -d --delay --order'
                )
 
         _init_completion || return
@@ -45,6 +46,12 @@ _systemd_cgtop() {
                         --machine|-M)
                                 comps=$( __get_machines )
                         ;;
+                        --recursive)
+                                comps='yes no'
+                        ;;
+                        --order)
+                                comps='path tasks cpu memory io'
+                        ;;
                 esac
                 COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
                 return 0