summaryrefslogtreecommitdiffstats
path: root/share/bash-completion
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-27 00:58:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-27 00:58:35 +0000
commit55019ff4757681593a80775526029c2ff1907f5c (patch)
tree947d572f3fa1a14c3809367303850524d94e92da /share/bash-completion
parentAdding upstream version 20210726. (diff)
downloadopen-infrastructure-compute-tools-55019ff4757681593a80775526029c2ff1907f5c.tar.xz
open-infrastructure-compute-tools-55019ff4757681593a80775526029c2ff1907f5c.zip
Adding upstream version 20210727.upstream/20210727
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/bash-completion')
-rw-r--r--share/bash-completion/container16
1 files changed, 16 insertions, 0 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index bb3eb41..dfb7ad5 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -334,6 +334,22 @@ _container()
return 0
;;
+ update|u)
+ case "${prev}" in
+ -n|--name)
+ opts="$(container list -s -f shell)"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+
+ *)
+ opts="-n --name -y --yes"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ esac
+ ;;
+
version|ver)
return 0
;;