From c5b9bef5ed74c4180da6e6425d1bfd79f3a57f5c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 18 Oct 2025 09:57:20 -0500 Subject: add Exit() to the template --- argv.template.go | 8 ++++++++ 1 file changed, 8 insertions(+) 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" } -- cgit v1.2.3