summaryrefslogtreecommitdiffstats
path: root/share/bash-completion/container
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-03-02 10:49:34 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2019-03-02 10:50:33 +0000
commit4be4fa2f94d0cc51ec78fdbd32dffd859ee2e496 (patch)
tree28fc77f3d523b85ca6fd21ace4d19287dc11b6a4 /share/bash-completion/container
parentReadding key command. (diff)
downloadcompute-tools-4be4fa2f94d0cc51ec78fdbd32dffd859ee2e496.tar.xz
compute-tools-4be4fa2f94d0cc51ec78fdbd32dffd859ee2e496.zip
Readding limit command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r--share/bash-completion/container15
1 files changed, 15 insertions, 0 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index 710e660..e130710 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -102,6 +102,21 @@ _container()
opts="-a --add -l --list -r --remove"
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
+
+ limit)
+ case "${prev}" in
+ -n|--name)
+ opts="$(container list -a -f shell)"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+
+ *)
+ opts="-n --name --blockio-device-weight --blockio-read-bandwidth -b --blockio-weight --blockio-write-bandwidth -c --cpu-quota --cpu-shares -m --memory-limit -t --tasks-max"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ esac
;;
list|ls)