From f09217ebc7870ea9ab1f4b523666ac1497d99f86 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 14 Oct 2025 03:23:24 -0500 Subject: run around the block another time. this time publishing too --- argv.go | 8 ++++++++ main.go | 3 +-- structs.go | 4 +++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/argv.go b/argv.go index d917107..b5d51b4 100644 --- a/argv.go +++ b/argv.go @@ -3,6 +3,8 @@ package main import ( "os" + "go.wit.com/gui" + "go.wit.com/lib/fhelp" "go.wit.com/lib/gui/prep" ) @@ -66,6 +68,12 @@ func (args) Buildtime() (string, string) { return BUILDTIME, VERSION } +func (args) ArgvGui() error { + me.myGui = fhelp.Gui() // adds the GUI package argv support + me.origGui = gui.New() + return nil +} + func (a args) DoAutoComplete(pb *prep.Auto) { if pb.Cmd == "" { pb.Autocomplete3([]string{"--bash", "quick", "--dry-run", "--full", "--reason", "--version", "--auto-run", "--keep-gomod"}) diff --git a/main.go b/main.go index 22c4116..62f104d 100644 --- a/main.go +++ b/main.go @@ -29,8 +29,7 @@ var argv args func main() { me = new(autoType) - me.myGui = prep.Gui() // prepares the GUI package for go-args - me.sh = prep.Bash3(&argv) // bash autocomplete + me.sh = prep.Autocomplete(&argv) // adds shell auto complete to go-args me.forge = forgepb.Init() me.found = new(gitpb.Repos) diff --git a/structs.go b/structs.go index 4785d94..499de11 100644 --- a/structs.go +++ b/structs.go @@ -3,6 +3,7 @@ package main import ( "go.wit.com/gui" + "go.wit.com/lib/fhelp" "go.wit.com/lib/gadgets" "go.wit.com/lib/gui/prep" "go.wit.com/lib/protobuf/forgepb" @@ -13,7 +14,8 @@ var me *autoType type autoType struct { sh *prep.Auto // more experiments for bash handling - myGui *prep.GuiPrep // the gui handle itself + myGui *fhelp.GuiPrep // the gui handle itself + origGui *gui.Node // the gui handle itself releaseReasonS string // = "gocui dropdown select" release releaseStruct // notsure reposbox *gui.Node // notsure -- cgit v1.2.3