summaryrefslogtreecommitdiffstats
path: root/share/bash-completion
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-05-01 05:18:45 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-05-01 05:19:20 +0000
commitbaa1a15eb54693784ddeca9561357e8213049241 (patch)
tree3691b4b3459c94eaf99eef4fca2ddcff65c86f32 /share/bash-completion
parentReleasing version 20220430. (diff)
downloadcompute-tools-baa1a15eb54693784ddeca9561357e8213049241.tar.xz
compute-tools-baa1a15eb54693784ddeca9561357e8213049241.zip
Adding container rebuild command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
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 24205d7..1637b5e 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -264,6 +264,22 @@ _container()
esac
;;
+ rebuild|rb)
+ case "${prev}" in
+ -n|--name)
+ opts="$(container list -f shell)"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+
+ *)
+ opts="-n --name -f --force -v --verbose"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ esac
+ ;;
+
restart|rt)
case "${prev}" in
-n|--name)