diff options
| author | Jeff Carr <[email protected]> | 2025-10-22 05:36:58 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-22 05:36:58 -0500 |
| commit | f8db398611446627816a14af6b3fe52b15c21191 (patch) | |
| tree | d41c182f1dbefb05e0ffabbef98cea1e093671f5 | |
| parent | 7e204190a6c40815bcc37aed4ae7f473429a7c0f (diff) | |
use ENV
| -rw-r--r-- | argv.template.go | 3 | ||||
| -rw-r--r-- | doMtime.go | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/argv.template.go b/argv.template.go index cd4421d..9949255 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/log" ) @@ -54,7 +55,7 @@ func (args) WriteHelp() error { 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) @@ -14,7 +14,7 @@ import ( "os" "path/filepath" - "go.wit.com/lib/config" + "go.wit.com/lib/ENV" "go.wit.com/log" ) @@ -66,7 +66,7 @@ func doMtime(filebase string) bool { return false } } - if config.Verbose() { + if ENV.Verbose() { log.Info(filebase + ".proto was older than all pb.go files. No need to re-run autogenpb.") } if allerr == nil { |
