diff options
| -rw-r--r-- | argv.template.go | 5 | ||||
| -rw-r--r-- | doBuild.go | 5 | ||||
| -rw-r--r-- | 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 @@ -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"} } @@ -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 { |
