diff options
| author | Jeff Carr <[email protected]> | 2025-10-22 09:20:07 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-22 09:20:07 -0500 |
| commit | 772a878ccc72dc4f6135a35575154ce1a2d33876 (patch) | |
| tree | a07ef77ed930269ae6dbadaf5bc4bde0aa50e9a1 | |
| parent | a1792c4e1afb1e8901f05e41e61add8f39038055 (diff) | |
step1v0.0.109
| -rw-r--r-- | argv.template.go | 12 | ||||
| -rw-r--r-- | 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) @@ -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 |
