summaryrefslogtreecommitdiffstats
path: root/share/bash-completion
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-06-29 11:29:23 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-06-29 11:38:54 +0000
commite07edad5f45907e9c7f4d6c24823b80cbe282316 (patch)
treeeb4049b82fc0765fe2f5d731ef52a3a15cdcd282 /share/bash-completion
parentAdding upstream version 20210411. (diff)
downloadopen-infrastructure-compute-tools-e07edad5f45907e9c7f4d6c24823b80cbe282316.tar.xz
open-infrastructure-compute-tools-e07edad5f45907e9c7f4d6c24823b80cbe282316.zip
Adding upstream version 20210628.upstream/20210628
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/bash-completion')
-rw-r--r--share/bash-completion/container18
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}) )