diff options
| author | Jeff Carr <[email protected]> | 2025-10-25 18:18:36 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-25 18:18:36 -0500 |
| commit | fd6c04fec50fb083549b1c55f66f5279a7bdf468 (patch) | |
| tree | 2b8c6a89cc58a9ce7f838ef5aec65f2f3c7ffe21 | |
| parent | 6619c5c7152941eb1061f50b079ac4d00d2fa97e (diff) | |
kinda half ass working again
| -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) } |
