diff options
| author | Jeff Carr <[email protected]> | 2025-10-22 09:20:14 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-22 09:20:14 -0500 |
| commit | 79d5f1d674f4f4a3b5304acc93908cdd968b33d4 (patch) | |
| tree | da2c767cec4060465a5d34e0b6cb22e11f2a06be | |
| parent | c60d46ea7a098a187a13ee78d2c3a6e7e77fe285 (diff) | |
ENV & lib/config changes
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | generate.go | 2 | ||||
| -rw-r--r-- | theMagicOfAutocomplete.go | 3 |
3 files changed, 4 insertions, 3 deletions
@@ -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 |
