summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-22 09:20:14 -0500
committerJeff Carr <[email protected]>2025-10-22 09:20:14 -0500
commit79d5f1d674f4f4a3b5304acc93908cdd968b33d4 (patch)
treeda2c767cec4060465a5d34e0b6cb22e11f2a06be
parentc60d46ea7a098a187a13ee78d2c3a6e7e77fe285 (diff)
ENV & lib/config changes
-rw-r--r--Makefile2
-rw-r--r--generate.go2
-rw-r--r--theMagicOfAutocomplete.go3
3 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7f9db03..b8ab7b0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
all: goimports proto vet
@echo This GO code passes the compile checks
-proto-renumber:
+proto-renumber: clean
autogenpb --renumber --proto argv.proto
make goimports vet
diff --git a/generate.go b/generate.go
index f539638..c5deef3 100644
--- a/generate.go
+++ b/generate.go
@@ -6,4 +6,4 @@ package argvpb
//
// NOTE: please add to go generate: if ! exists go.mod, run 'go mod init' & 'go mod tidy'
//
-//go:generate autogenpb --proto auto.proto
+//go:generate autogenpb --proto argv.proto
diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go
index 9155517..dd75a23 100644
--- a/theMagicOfAutocomplete.go
+++ b/theMagicOfAutocomplete.go
@@ -40,7 +40,8 @@ func Autocomplete(dest any) *Argv {
// loads the argv autocomplete history file
all := NewArgvs()
- err := config.LoadCache(all, "argv", me.pb.AppInfo.APPNAME) //
+ fullname := config.MakeCacheFilename("argv", me.pb.AppInfo.APPNAME)
+ err := config.LoadFromFilename(all, fullname)
if err != nil {
// there is no history.
// todo: initialize the history file