From b79731472d70867f9e73cdeeb0917bc287170ee6 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 21 Oct 2025 06:50:52 -0500 Subject: changed to ENV --- argv.template.go | 5 +++-- doBuild.go | 5 +++-- exit.go | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/argv.template.go b/argv.template.go index 35a8c99..4af2c7a 100644 --- a/argv.template.go +++ b/argv.template.go @@ -10,6 +10,7 @@ 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" ) @@ -63,8 +64,8 @@ func (args) InitGui() error { func (args) Exit() { gui.UnloadToolkits() - if me.argv.Verbose() { - log.Info("argv.Exit() called", APPNAME+".Exit() because me.argv.Verbose() == true") + if ENV.Verbose() { + log.Info("argv.Exit() called", APPNAME+".Exit() because ENV.Verbose() == true") } // remove this from the template for your app (or make one for youself if you need it) forgeExit() // custom forge shutdown function diff --git a/doBuild.go b/doBuild.go index 3879efb..4575512 100644 --- a/doBuild.go +++ b/doBuild.go @@ -6,6 +6,7 @@ package main import ( "fmt" + "go.wit.com/lib/ENV" "go.wit.com/log" ) @@ -13,7 +14,7 @@ import ( // so don't delete them func doBuild() error { v := []string{} - if argv.Verbose { + if ENV.Verbose() { v = []string{"-v", "-x"} } @@ -32,7 +33,7 @@ func doBuild() error { func doInstall() error { v := []string{} - if argv.Verbose { + if ENV.Verbose() { v = []string{"-v", "-x"} } diff --git a/exit.go b/exit.go index bfbaac4..62714a2 100644 --- a/exit.go +++ b/exit.go @@ -4,6 +4,7 @@ package main import ( + "go.wit.com/lib/ENV" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -13,8 +14,8 @@ import ( // hopefully will allow the GUI plugins to unload properly func forgeExit() { resetTerminalTitle() - if me.argv.Verbose() { - log.Info("argv.Exit() got to forge.Exit() because me.argv.Verbose() was true") + if ENV.Verbose() { + log.Info("argv.Exit() got to forge.Exit() because ENV.Verbose() was true") } // me.forge.SetConfigSave(configSave) if err := me.forge.Close(); err != nil { -- cgit v1.2.3