summaryrefslogtreecommitdiffstats
path: root/share/bash-completion/container
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-03-04 11:13:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-03-04 11:13:21 +0000
commit8696fd8d894485814ec1ab23095c54024a19c1eb (patch)
tree3e0304db7770ff05bfe6ed0ce711ebd0c38182da /share/bash-completion/container
parentAdding upstream version 20190301-lts1. (diff)
downloadopen-infrastructure-compute-tools-8696fd8d894485814ec1ab23095c54024a19c1eb.tar.xz
open-infrastructure-compute-tools-8696fd8d894485814ec1ab23095c54024a19c1eb.zip
Adding upstream version 20190304.upstream/20190304
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/bash-completion/container')
-rw-r--r--share/bash-completion/container21
1 files changed, 21 insertions, 0 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index 0013394..e130710 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -98,6 +98,27 @@ _container()
esac
;;
+ key)
+ 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)
case "${prev}" in
-h|--host)