diff options
| -rw-r--r-- | argv.go | 8 | ||||
| -rw-r--r-- | main.go | 3 | ||||
| -rw-r--r-- | structs.go | 4 |
3 files changed, 12 insertions, 3 deletions
@@ -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"}) @@ -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) @@ -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 |
