summaryrefslogtreecommitdiffstats
path: root/share/bash-completion/container
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-03-02 10:39:25 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-03-02 10:39:34 +0000
commitc0d285f4b03b176f1e1b5e4ac8968f2c8aa4492d (patch)
treeda3f1fbc3889d6dbe20584434250ed673b84682d /share/bash-completion/container
parentReleasing debian version 20190222-1. (diff)
downloadopen-infrastructure-compute-tools-c0d285f4b03b176f1e1b5e4ac8968f2c8aa4492d.tar.xz
open-infrastructure-compute-tools-c0d285f4b03b176f1e1b5e4ac8968f2c8aa4492d.zip
Merging upstream version 20190301.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/bash-completion/container')
-rw-r--r--share/bash-completion/container28
1 files changed, 3 insertions, 25 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index 150ff71..0013394 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -44,7 +44,7 @@ _container()
return 0
;;
- console|con)
+ console)
case "${prev}" in
-n|--name)
opts="$(container list -s -f shell)"
@@ -60,7 +60,7 @@ _container()
esac
;;
- create)
+ create|cr)
case "${prev}" in
-n|--name)
opts="$(cd /etc/open-infrastructure/container/debconf 2>/dev/null && ls *.cfg */*.cfg 2>/dev/null | sed -e 's|.*/||g' -e 's|.cfg$||g')"
@@ -98,28 +98,6 @@ _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)
@@ -211,7 +189,7 @@ _container()
esac
;;
- restart)
+ restart|rt)
case "${prev}" in
-n|--name)
opts="$(container list -s -f shell)"