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 /argv.template.go | |
| parent | a1792c4e1afb1e8901f05e41e61add8f39038055 (diff) | |
step1v0.0.109
Diffstat (limited to 'argv.template.go')
| -rw-r--r-- | argv.template.go | 12 |
1 files changed, 11 insertions, 1 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) |
