From 5323d07b2ce9416e5958be415c35220cce3b4114 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 26 Jul 2021 13:27:56 +0200 Subject: Adding container update command. Signed-off-by: Daniel Baumann --- share/bash-completion/container | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'share/bash-completion') diff --git a/share/bash-completion/container b/share/bash-completion/container index bb3eb41..dfb7ad5 100644 --- a/share/bash-completion/container +++ b/share/bash-completion/container @@ -334,6 +334,22 @@ _container() return 0 ;; + update|u) + case "${prev}" in + -n|--name) + opts="$(container list -s -f shell)" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + + *) + opts="-n --name -y --yes" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + ;; + esac + ;; + version|ver) return 0 ;; -- cgit v1.2.3