summaryrefslogtreecommitdiffstats
path: root/share/bash-completion/container
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-05-05 16:33:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-05-05 16:33:34 +0000
commitf3f0fb8c0dfed591c3c03ff7f2d00ebb8b52d4ae (patch)
tree241cc9d6148fe3d9b131bf7e344027df7eb59a8d /share/bash-completion/container
parentAdding upstream version 20220430. (diff)
downloadopen-infrastructure-compute-tools-f3f0fb8c0dfed591c3c03ff7f2d00ebb8b52d4ae.tar.xz
open-infrastructure-compute-tools-f3f0fb8c0dfed591c3c03ff7f2d00ebb8b52d4ae.zip
Adding upstream version 20220505.upstream/20220505
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/bash-completion/container')
-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)"