diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2022-05-01 05:18:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2022-05-01 05:19:20 +0000 |
commit | baa1a15eb54693784ddeca9561357e8213049241 (patch) | |
tree | 3691b4b3459c94eaf99eef4fca2ddcff65c86f32 /share/bash-completion | |
parent | Releasing version 20220430. (diff) | |
download | compute-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/container | 16 |
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) |