diff options
| author | Jeff Carr <[email protected]> | 2025-10-24 13:07:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-24 13:07:01 -0500 |
| commit | f7a1de79b1c115bddbf3d323a6fd7786d878efd9 (patch) | |
| tree | 171ef2921df7cf12bda0d795ff35ed9915b8e897 | |
| parent | 88d0ce908c76d98a29ab5ffc3417248f951493fb (diff) | |
lame lowercase usagev0.0.45
| -rw-r--r-- | theMagicOfAutocomplete.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go index d9ef386..b48d1b9 100644 --- a/theMagicOfAutocomplete.go +++ b/theMagicOfAutocomplete.go @@ -10,9 +10,9 @@ import ( "strings" "time" - "go.wit.com/lib/ENV" "go.wit.com/lib/cobol" "go.wit.com/lib/config" + "go.wit.com/lib/env" durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) @@ -36,8 +36,8 @@ func Autocomplete(dest any) *Argv { // parses os.Args into the protobuf me.pb.parseOsArgs() - // initializes the lib/ENV library - ENV.Init(me.pb.AppInfo.APPNAME, me.pb.AppInfo.VERSION, cobol.Time(me.pb.AppInfo.BUILDTIME), me.pb.Real, GoodExit, BadExit) + // initializes the lib/env library + env.Init(me.pb.AppInfo.APPNAME, me.pb.AppInfo.VERSION, cobol.Time(me.pb.AppInfo.BUILDTIME), me.pb.Real, GoodExit, BadExit) // loads the argv autocomplete history file all := NewArgvs() @@ -69,10 +69,10 @@ func Autocomplete(dest any) *Argv { os.Exit(0) } - ENV.SetGlobal("argv", "real", fmt.Sprintf("%v", me.pb.Real)) + env.SetGlobal("argv", "real", fmt.Sprintf("%v", me.pb.Real)) for _, a := range me.pb.Real { if strings.HasPrefix(a, "--") { - ENV.SetGlobal("argv", a, "true") + env.SetGlobal("argv", a, "true") } } |
