From 6aa5ba4d6c3aefbbe4781affb35b625973db5b37 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Fri, 26 Mar 2021 13:18:29 +0300 Subject: [PATCH] Improve completion generation for bash and zsh --- cli/cli.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/cli.go b/cli/cli.go index eb588929..d54982d1 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -37,7 +37,7 @@ import ( // Application info const ( APP = "bibop" - VER = "4.5.0" + VER = "4.6.0" DESC = "Utility for testing command-line tools" ) @@ -344,11 +344,11 @@ func genCompletion() int { switch options.GetS(OPT_COMPLETION) { case "bash": - fmt.Printf(bash.Generate(info, "bibop")) + fmt.Printf(bash.Generate(info, "bibop", "recipe")) case "fish": fmt.Printf(fish.Generate(info, "bibop")) case "zsh": - fmt.Printf(zsh.Generate(info, optMap, "bibop")) + fmt.Printf(zsh.Generate(info, optMap, "bibop", "*.recipe")) default: return 1 }