summaryrefslogtreecommitdiffstats
path: root/share/bash-completion
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-05-05 16:33:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-05-05 16:33:37 +0000
commit4555baae98f8de055690d4d5c57e66b65156037f (patch)
tree0ee9e94efabd721e32893181a09429ed4eb2a114 /share/bash-completion
parentReleasing debian version 20220430-1. (diff)
downloadopen-infrastructure-compute-tools-4555baae98f8de055690d4d5c57e66b65156037f.tar.xz
open-infrastructure-compute-tools-4555baae98f8de055690d4d5c57e66b65156037f.zip
Merging upstream version 20220505.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/bash-completion')
-rw-r--r--share/bash-completion/container20
1 files changed, 18 insertions, 2 deletions
diff --git a/share/bash-completion/container b/share/bash-completion/container
index 24205d7..7792201 100644
--- a/share/bash-completion/container
+++ b/share/bash-completion/container
@@ -1,6 +1,6 @@
# Open Infrastructure: compute-tools
-# Copyright (C) 2014-2021 Daniel Baumann <daniel.baumann@open-infrastructure.net>
+# Copyright (C) 2014-2022 Daniel Baumann <daniel.baumann@open-infrastructure.net>
#
# SPDX-License-Identifier: GPL-3.0+
#
@@ -264,7 +264,23 @@ _container()
esac
;;
- restart|rt)
+ 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|rs)
case "${prev}" in
-n|--name)
opts="$(container list -s -f shell)"