summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-21 06:41:36 -0500
committerJeff Carr <[email protected]>2025-10-21 06:41:36 -0500
commit7ae3a23b0938c1e2b36c9f36cfb0d85ed90ac854 (patch)
treeaf4d9632c737d2137c68cf0f1561dd307311d307
parent82c1b0289a1e855090400c54b693e518dc79d0f8 (diff)
use lib/ENV
-rw-r--r--theMagicOfAutocomplete.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go
index bcae20d..321dbdd 100644
--- a/theMagicOfAutocomplete.go
+++ b/theMagicOfAutocomplete.go
@@ -9,6 +9,7 @@ import (
"strings"
"time"
+ "go.wit.com/lib/ENV"
"go.wit.com/lib/cobol"
"go.wit.com/lib/config"
"go.wit.com/log"
@@ -70,7 +71,7 @@ func Autocomplete(dest any) *Argv {
all := NewArgvs()
// initializes the application config file
- config.Init(me.pb.AppInfo.APPNAME, me.pb.AppInfo.VERSION, cobol.Time(me.pb.AppInfo.BUILDTIME), me.pb.Real)
+ ENV.Init(me.pb.AppInfo.APPNAME, me.pb.AppInfo.VERSION, cobol.Time(me.pb.AppInfo.BUILDTIME), me.pb.Real)
// loads the autocomplete history file
err := config.LoadCache(all, "argv", me.pb.AppInfo.APPNAME) //
@@ -136,8 +137,6 @@ func Autocomplete(dest any) *Argv {
// }
}
- me.pb.Debugf("WRITE DEBUG: write PB='%s' len(pb)=%d config.Save().err=%v", all.Filename, all.Len(), err)
-
// turn on debugging if duration < 200 milliseconds
dur = me.pb.Duration.AsDuration()
if dur < time.Millisecond*200 {