From 2e26ce1eaf09d0612827ce3689ba1434ab0a1ce1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 13 Oct 2025 09:43:31 -0500 Subject: gui init moved into argv init. maybe. notsure --- argv.go | 8 ++++++-- main.go | 1 - structs.go | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/argv.go b/argv.go index ef66513..550d32d 100644 --- a/argv.go +++ b/argv.go @@ -7,7 +7,9 @@ import ( "os" "go.wit.com/lib/debugger" + "go.wit.com/lib/fhelp" "go.wit.com/lib/gui/prep" + "go.wit.com/log" ) /* @@ -196,10 +198,12 @@ func (args) Appname() string { return ARGNAME } -func (args) ArgvGui() bool { +func (args) ArgvGui() error { // arg.Register(&argGui) // me.myGui = gui.Init() - return true + log.Info("ArgvGui() started") + me.myGui = fhelp.Gui() // adds the GUI package argv support + return nil } func (args) ArgvDebugger() bool { diff --git a/main.go b/main.go index aa5ff6a..a5ac2fa 100644 --- a/main.go +++ b/main.go @@ -31,7 +31,6 @@ func main() { // autocomplete must run before everythingi // any writes before this to STDOUT or STDERR // will cause problems for the user at the command line - me.myGui = prep.Gui() // adds the GUI package argv support me.sh = prep.Autocomplete(&argv) // adds shell auto complete to go-args // the current forge init process diff --git a/structs.go b/structs.go index 5dceade..f613333 100644 --- a/structs.go +++ b/structs.go @@ -5,6 +5,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" @@ -29,7 +30,7 @@ func myServer() string { type mainType struct { sh *prep.Auto // shell autocomplete forge *forgepb.Forge // for holding the forge protobuf files - myGui *prep.GuiPrep // for initializing the GUI toolkits + myGui *fhelp.GuiPrep // for initializing the GUI toolkits foundPaths []string // stores gopaths to act on (when doing go-clone) configSave bool // if the config file should be saved after finishing urlbase string // base URL -- cgit v1.2.3