diff options
| author | Jeff Carr <[email protected]> | 2025-10-17 15:42:34 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-17 15:42:34 -0500 |
| commit | 7abc658c20a143bef36e30ad34719776bbc7a505 (patch) | |
| tree | e76b57af6a7b37c9d7ce59985e9db0587e4c1cf3 /argv.go | |
| parent | d4efbe0b4d3baeb908a70fe7e832fc3dd6f6d92b (diff) | |
new argv location
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -3,7 +3,7 @@ package main import ( "os" - "go.wit.com/lib/gui/prep" + "go.wit.com/lib/protobuf/argvpb" ) /* @@ -33,10 +33,6 @@ func (args) Examples() string { return out } -func (args) Version() string { - return "go-clone " + VERSION + " Built on " + BUILDTIME -} - type EmptyCmd struct { } @@ -60,9 +56,15 @@ func (args) Buildtime() (string, string) { return BUILDTIME, VERSION } -func (a args) DoAutoComplete(pb *prep.Auto) { +func (args) Version() string { + return argvpb.StandardVersion(ARGNAME, VERSION, BUILDTIME) +} + +// sends the strings to bash or zsh that will be your options +func (a args) SendCompletionStrings(pb *argvpb.Argv) { if pb.Cmd == "" { - pb.Autocomplete3([]string{"dump", "gui", "show", "--version", "--keep-files", "--buildversion"}) + base := []string{"dump", "gui", "show", "--version", "--keep-files", "--buildversion"} + pb.SendStrings(base) } else { pb.SubCommand(pb.Goargs...) } |
