summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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