diff options
| -rw-r--r-- | argv.custom.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/argv.custom.go b/argv.custom.go index cdbe31c..9525e82 100644 --- a/argv.custom.go +++ b/argv.custom.go @@ -4,7 +4,9 @@ package main import ( + "fmt" "os" + "strings" "go.wit.com/gui" "go.wit.com/lib/debugger" @@ -96,10 +98,11 @@ func (a args) SendCompletionStrings(pb *argvpb.Argv) { matches := []string{"clean", "commit", "merge", "patch", "normal", "pull", "rebuild", "generate", "config"} matches = append(matches, "show", "add", "fixer", "dev", "verify", "mode", "gui", "whatchanged") matches = append(matches, "--version", "--force", "--all") - pb.SendStrings(matches) + fmt.Fprintf(argvpb.Stdout, strings.Join(matches, " ")) + // pb.SendStrings(matches) } else { // autogenerate the strings for the subcommand using github.com/alexflint/go-arg pb.GenerateSubCommandStrings(pb.Real...) } - os.Exit(0) + // os.Exit(0) } |
