summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 03:23:24 -0500
committerJeff Carr <[email protected]>2025-10-14 03:23:24 -0500
commitf09217ebc7870ea9ab1f4b523666ac1497d99f86 (patch)
tree32e31eef4ea07e391475234a43794e79d709e592
parente57eb14eee47ae2b636f27cf4f41620a66f7082c (diff)
run around the block another time. this time publishing toov0.23.142
-rw-r--r--argv.go8
-rw-r--r--main.go3
-rw-r--r--structs.go4
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