summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-21 06:50:52 -0500
committerJeff Carr <[email protected]>2025-10-21 06:50:52 -0500
commitb79731472d70867f9e73cdeeb0917bc287170ee6 (patch)
treebff33832f693dbd6795feac322ea895820333493
parent46aae682f88cd9171e81d536d85436c2b6cfc469 (diff)
changed to ENV
-rw-r--r--argv.template.go5
-rw-r--r--doBuild.go5
-rw-r--r--exit.go5
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 {