From 75a513bf104e1b9a399ef3bc8abef1a1e7083809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Harry=20M=C3=ADchal?= Date: Thu, 10 Oct 2019 14:23:37 +0200 Subject: [PATCH] completion: Offer all commands after --verbose This fixes an old remnant of the past. Even though the '--verbose' option may not do anything for the command, it is compatible with all of them. https://github.com/containers/toolbox/pull/292 --- completion/bash/toolbox | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/completion/bash/toolbox b/completion/bash/toolbox index e5bbcec..ba49a0a 100644 --- a/completion/bash/toolbox +++ b/completion/bash/toolbox @@ -13,8 +13,7 @@ __toolbox() { local MIN_VERSION=29 local RAWHIDE_VERSION=32 - local verbose_commands="create enter help init-container list run" - local commands="$verbose_commands rm rmi" + local commands="create enter help init-container list rm rmi run" declare -A options local options=([create]="--candidate-registry --container --image --release" \ @@ -34,8 +33,7 @@ __toolbox() { fi case "$prev" in - --verbose) - mapfile -t COMPREPLY < <(compgen -W "$verbose_commands" -- "$2") + mapfile -t COMPREPLY < <(compgen -W "$commands" -- "$2") return 0 ;; --container)