From 2006b968539824fdb3177bd78f530de45fb9283f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 16 Oct 2025 13:32:12 -0500 Subject: fix name. better home --- argv.go | 4 ++-- main.go | 6 +++--- structs.go | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/argv.go b/argv.go index 22eaec6..67ea874 100644 --- a/argv.go +++ b/argv.go @@ -14,7 +14,7 @@ import ( "go.wit.com/lib/debugger" "go.wit.com/lib/fhelp" "go.wit.com/lib/gui/logsettings" - "go.wit.com/lib/gui/prep" + "go.wit.com/lib/protobuf/argvpb" "go.wit.com/log" ) @@ -148,7 +148,7 @@ func (args) ArgvGui() error { return nil } -func (a args) DoAutoComplete(pb *prep.Auto) { +func (a args) DoAutoComplete(pb *argvpb.Argv) { base := []string{"build", "upgrade", "git", "publish", "pb", "linux", "droplet"} base = append(base, "--version", "--force", "--all") diff --git a/main.go b/main.go index c4f1b53..0eddea2 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "os" "unicode" - "go.wit.com/lib/gui/prep" + "go.wit.com/lib/protobuf/argvpb" "go.wit.com/lib/protobuf/filepb" "go.wit.com/log" ) @@ -26,8 +26,8 @@ var resources embed.FS func main() { me = new(mainType) // autocomplete must be processed before there is anything sent to STDOUT or STDERR - me.sh = prep.Autocomplete(&argv) // adds shell auto complete to go-args - me.homedir, _ = os.UserHomeDir() // store shortcut here todo: add better logic + me.sh = argvpb.Autocomplete(&argv) // adds shell auto complete to go-args + me.homedir, _ = os.UserHomeDir() // store shortcut here todo: add better logic if me.sh.Cmd == "" { // user didn't enter a sub command diff --git a/structs.go b/structs.go index 3f22337..90f2013 100644 --- a/structs.go +++ b/structs.go @@ -8,7 +8,7 @@ import ( "go.wit.com/lib/debian" "go.wit.com/lib/fhelp" - "go.wit.com/lib/gui/prep" + "go.wit.com/lib/protobuf/argvpb" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/zoopb" ) @@ -18,7 +18,7 @@ var me *mainType // this app's variables type mainType struct { once sync.Once // one-time initialized data - sh *prep.Auto // more experiments for bash handling + sh *argvpb.Argv // more experiments for bash handling forge *forgepb.Forge // your customized repo preferences and settings machine *zoopb.Machine // your customized repo preferences and settings homedir string // where the user homedir is -- cgit v1.2.3