diff options
| -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") } } |
