From 772a878ccc72dc4f6135a35575154ce1a2d33876 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 22 Oct 2025 09:20:07 -0500 Subject: step1 --- argv.template.go | 12 +++++++++++- structs.go | 8 ++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/argv.template.go b/argv.template.go index cd4421d..1808722 100644 --- a/argv.template.go +++ b/argv.template.go @@ -10,6 +10,8 @@ import ( "go.wit.com/dev/alexflint/arg" "go.wit.com/gui" + "go.wit.com/lib/ENV" + "go.wit.com/lib/fhelp" "go.wit.com/log" ) @@ -52,9 +54,17 @@ func (args) WriteHelp() error { return nil } +func (args) InitGui() error { + // panic("got here") + arg.Register(&gui.ArgvGui) + // me.gui = gui.PreInit() + me.myGui = fhelp.Gui() + return nil +} + func (args) Exit() { gui.UnloadToolkits() - if me.argv.Verbose() { + if ENV.Verbose() { log.Info("argv.Exit() called", APPNAME+".Exit()") } // remove this from the template for your app (or make one for youself if you need it) diff --git a/structs.go b/structs.go index 2a618a3..cd3effb 100644 --- a/structs.go +++ b/structs.go @@ -7,6 +7,7 @@ import ( "time" "go.wit.com/dev/alexflint/arg" + "go.wit.com/lib/fhelp" "go.wit.com/lib/protobuf/argvpb" "go.wit.com/lib/protobuf/zoopb" ) @@ -15,10 +16,9 @@ var me *zoodStruct // this app's variables type zoodStruct struct { - argv *argvpb.Argv // more experiments for bash handling - pp *arg.Parser // for parsing the command line args. Yay to alexf lint! - // myGui *fhelp.GuiPrep // for initializing the GUI toolkits - + argv *argvpb.Argv // more experiments for bash handling + pp *arg.Parser // for parsing the command line args. Yay to alexf lint! + myGui *fhelp.GuiPrep // for initializing the GUI toolkits urlbase string // the dns name for the zookeeper hostname string // my hostname pollDelay time.Duration // how often to report our status -- cgit v1.2.3