Skip to content

Commit

Permalink
Improve completion generation for bash and zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Mar 26, 2021
1 parent 89fe6e0 commit 6aa5ba4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 6aa5ba4

Please sign in to comment.