summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-01-03 21:00:00 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2017-01-04 10:27:37 +0000
commit37e3261821b13e8f8283ef23bb68e2fe6668f659 (patch)
tree609d1ef37c2ca4e4c2f1d22d8f7e4e9259036f57
parentAdding bash-completion for container auto command. (diff)
downloadcompute-tools-37e3261821b13e8f8283ef23bb68e2fe6668f659.tar.xz
compute-tools-37e3261821b13e8f8283ef23bb68e2fe6668f659.zip
Adding bash-completion for container move command.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rw-r--r--share/bash-completion/container20
1 files changed, 20 insertions, 0 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index 99d342b..fd916d1 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -158,6 +158,26 @@ _container()
esac
;;
+ move|mv)
+ case "${cur}" in
+ -*)
+ opts="-f --force -n --new -o --old"
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+
+ *)
+ case "${prev}" in
+ -o|--old)
+ opts=$(container list -t -f shell)
+ COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
+ return 0
+ ;;
+ esac
+ ;;
+ esac
+ ;;
+
remove|rm)
case "${cur}" in
-*)