diff options
| author | Jeff Carr <[email protected]> | 2025-10-24 18:30:54 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-24 18:30:54 -0500 |
| commit | 5314952e14cedbb1d5827f66827c16a58ae05096 (patch) | |
| tree | 26c099e92b0bfe2af6d5d66b8d5ffaf2922b8418 | |
| parent | cd341e123d428ab26e92c32fa6eed96ba7a4c15e (diff) | |
s/ENV/env/ but ENV really is better herev0.7.114
| -rw-r--r-- | argv.template.go | 4 | ||||
| -rw-r--r-- | clone.go | 4 | ||||
| -rw-r--r-- | main.go | 4 | ||||
| -rw-r--r-- | work.go | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/argv.template.go b/argv.template.go index 1808722..6948afe 100644 --- a/argv.template.go +++ b/argv.template.go @@ -10,7 +10,7 @@ import ( "go.wit.com/dev/alexflint/arg" "go.wit.com/gui" - "go.wit.com/lib/ENV" + "go.wit.com/lib/env" "go.wit.com/lib/fhelp" "go.wit.com/log" ) @@ -64,7 +64,7 @@ func (args) InitGui() error { func (args) Exit() { gui.UnloadToolkits() - if ENV.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) @@ -7,7 +7,7 @@ import ( "path/filepath" "strings" - "go.wit.com/lib/ENV" + "go.wit.com/lib/env" "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) @@ -69,7 +69,7 @@ func clone(gopath string) (*gitpb.Repo, error) { gopath = CleanRepoURL(gopath) os.Setenv("REPO_AUTO_CLONE", "true") // pb, _ := me.forge.NewGoPath(gopath) - check := me.forge.FindAnyPath(filepath.Join(ENV.Get("gopath"), gopath)) + check := me.forge.FindAnyPath(filepath.Join(env.Get("gopath"), gopath)) if check != nil { if check.IsValidDir() { // repo already exists and is valid @@ -1,7 +1,7 @@ package main import ( - "go.wit.com/lib/ENV" + "go.wit.com/lib/env" "go.wit.com/lib/protobuf/argvpb" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/gitpb" @@ -79,6 +79,6 @@ func okExit(thing string) { func badExit(err error) { log.Info("Total repositories:", me.forge.Repos.Len()) - s := log.Sprintf("go-clone error in %s", ENV.Get("gopath")) + s := log.Sprintf("go-clone error in %s", env.Get("gopath")) me.argv.BadExit(s, err) } @@ -1,7 +1,7 @@ package main import ( - "go.wit.com/lib/ENV" + "go.wit.com/lib/env" "go.wit.com/lib/gui/shell" "go.wit.com/log" ) @@ -11,10 +11,10 @@ func autoWork() { if !argv.AutoWork { return } - log.Info("About to re-create", ENV.Get("gopath")+"/go.work") - shell.PathRun(ENV.Get("gopath"), []string{"mv", "go.work", "go.work.last"}) + log.Info("About to re-create", env.Get("gopath")+"/go.work") + shell.PathRun(env.Get("gopath"), []string{"mv", "go.work", "go.work.last"}) me.forge.MakeGoWork() - shell.PathRun(ENV.Get("gopath"), []string{"go", "work", "use"}) + shell.PathRun(env.Get("gopath"), []string{"go", "work", "use"}) log.Info("") log.Info("original go.work file saved as go.work.last") log.Info("") |
