diff options
author | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-07-26 11:27:56 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@open-infrastructure.net> | 2021-07-27 00:31:53 +0000 |
commit | 5323d07b2ce9416e5958be415c35220cce3b4114 (patch) | |
tree | 60ad17be121c5473857d8ff9f22bb384211df5bc /share/bash-completion | |
parent | Correcting synopsis in container-run manpage. (diff) | |
download | compute-tools-5323d07b2ce9416e5958be415c35220cce3b4114.tar.xz compute-tools-5323d07b2ce9416e5958be415c35220cce3b4114.zip |
Adding container update 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 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 ;; |