diff options
| author | Jeff Carr <[email protected]> | 2025-10-17 11:45:24 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-17 11:45:24 -0500 |
| commit | 2896bf0b1d58b27b331ea437c7c5a7d7318c8e43 (patch) | |
| tree | 8aa58a0e3d7d916a76f82988667aaf23234e28f6 /argv.go | |
| parent | e42dc932f0120c06c7e510561783a21e7732c093 (diff) | |
Finally renamed prep to argvpb
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -3,7 +3,7 @@ package main import ( "os" - "go.wit.com/lib/gui/prep" + "go.wit.com/lib/protobuf/argvpb" ) /* @@ -12,6 +12,9 @@ import ( this enables command line options from other packages like 'gui' and 'log' */ +// argv *argvpb.Argv // more experiments for bash handling +// me.argv = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args + var argv args type args struct { @@ -46,11 +49,11 @@ func (args) Appname() string { return ARGNAME } -func (a args) DoAutoComplete(pb *prep.Auto) { +func (a args) DoAutoComplete(pb *argvpb.Argv) { // fmt.Fprintf(os.Stderr, "blah\n") // fmt.Fprintf(os.Stderr, "\n") if pb.Cmd == "" { - pb.Autocomplete3([]string{"--dry-run", "--non-recursive", "--work", "--version"}) + pb.SendStrings([]string{"--dry-run", "--non-recursive", "--work", "--version"}) } else { pb.SubCommand(pb.Goargs...) } |
