summaryrefslogtreecommitdiffstats
path: root/share/bash-completion
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-07-01 09:20:11 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-07-01 09:31:13 +0000
commit9883e37f57fa5b9dd7437f3b1b001fdb553529a2 (patch)
tree0de7fad93cbb0e0ddd72a542647a7c0a54014271 /share/bash-completion
parentAdding container-status command. (diff)
downloadcompute-tools-9883e37f57fa5b9dd7437f3b1b001fdb553529a2.tar.xz
compute-tools-9883e37f57fa5b9dd7437f3b1b001fdb553529a2.zip
Adding bash-completion for container status command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r--share/bash-completion/container20
1 files changed, 20 insertions, 0 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index 2a02016..f6434f8 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -208,6 +208,26 @@ _container()
esac
;;
+ status)
+ case "${cur}" in
+ -*)
+ opts="-n --name"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+
+ *)
+ case "${prev}" in
+ -n|--name)
+ opts=$(container list -t -f short)
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
stop)
case "${cur}" in
-*)