From f63123ba2326b9b78b3762b856713b8dc643789b Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 17 Oct 2025 17:18:52 -0500 Subject: lib now with better name --- argv.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'argv.go') diff --git a/argv.go b/argv.go index 58a7f2b..328da54 100644 --- a/argv.go +++ b/argv.go @@ -11,7 +11,7 @@ package main import ( "os" - "go.wit.com/lib/gui/prep" + "go.wit.com/lib/protobuf/argvpb" "go.wit.com/log" ) @@ -50,7 +50,7 @@ func init() { } func (args) Version() string { - return ARGNAME + " " + VERSION + " Built on " + BUILDTIME + return argvpb.StandardVersion(ARGNAME, VERSION, BUILDTIME) } func (args) Buildtime() (string, string) { @@ -61,9 +61,11 @@ func (args) Appname() string { return ARGNAME } -func (a args) DoAutoComplete(pb *prep.Auto) { +// 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{"status", "test", "--version", "--daemon"}) + base := []string{"status", "test", "--version", "--daemon"} + pb.SendStrings(base) } else { pb.SubCommand(pb.Goargs...) } -- cgit v1.2.3