summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-18 09:57:20 -0500
committerJeff Carr <[email protected]>2025-10-18 09:57:20 -0500
commitc5b9bef5ed74c4180da6e6425d1bfd79f3a57f5c (patch)
treeab5d7764458ef7c46d037deab72e6506a8617f83
parentc10e4b9a17443f849501da28724e8b070e4c8f82 (diff)
add Exit() to the template
-rw-r--r--argv.template.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/argv.template.go b/argv.template.go
index a4dd38a..f6cd250 100644
--- a/argv.template.go
+++ b/argv.template.go
@@ -11,6 +11,7 @@ import (
"go.wit.com/dev/alexflint/arg"
"go.wit.com/gui"
"go.wit.com/lib/fhelp"
+ "go.wit.com/log"
)
func (args) InitArgv() (string, string, string) {
@@ -43,6 +44,13 @@ func (args) InitGui() error {
return nil
}
+func (args) Exit() {
+ gui.UnloadToolkits()
+ if me.argv.Verbose() {
+ log.Info("argv.Exit() called", APPNAME + ".Exit()")
+ }
+}
+
func (args) Help() string {
return "got app help"
}