diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-06-29 11:39:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-06-29 11:39:16 +0000 |
commit | 251870158b34972626130b0f20c53b4ee321849a (patch) | |
tree | 4172459bf6c9d8085c9ea5d1c1c3d4fca736e179 /share/bash-completion/container | |
parent | Releasing debian version 20210411-1. (diff) | |
download | open-infrastructure-compute-tools-251870158b34972626130b0f20c53b4ee321849a.tar.xz open-infrastructure-compute-tools-251870158b34972626130b0f20c53b4ee321849a.zip |
Merging upstream version 20210628.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/bash-completion/container')
-rw-r--r-- | share/bash-completion/container | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container index 540f162..d966d7a 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -81,7 +81,7 @@ _container() esac ;; - enter) + enter|run) case "${prev}" in -n|--name) opts="$(container list -s -f shell)" @@ -97,6 +97,22 @@ _container() esac ;; + info) + case "${prev}" in + -n|--name) + opts="$(container list -t -f shell)" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + + *) + opts="--status --os --ip" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + esac + ;; + key) opts="-a --add -l --list -r --remove" COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) |