From 2d5174830aead2aa4e8dcbbb4de78a122d38835d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 29 Oct 2025 00:48:05 -0500 Subject: didn't roll the PB version. damnit. wasted time. --- argv.parseOsArgs.go | 6 ------ argv.proto | 2 +- init.go | 1 - theMagicOfAutocomplete.go | 8 +------- 4 files changed, 2 insertions(+), 15 deletions(-) diff --git a/argv.parseOsArgs.go b/argv.parseOsArgs.go index 12c63ac..002630a 100644 --- a/argv.parseOsArgs.go +++ b/argv.parseOsArgs.go @@ -12,12 +12,6 @@ func GetCmd() string { return PB.GetCmd() } -func mypanic(blah string) { - // me.debug = true - // doStdoutStderr() - panic(blah) -} - // todo: this is wrong func (pb *Argv) GetCmd() string { var curcmd string diff --git a/argv.proto b/argv.proto index b2c5ede..4fbc7d0 100644 --- a/argv.proto +++ b/argv.proto @@ -46,7 +46,7 @@ message Argv { // `autogenpb:marshal message Argvs { // `autogenpb:marshal` `autogenpb:sort` `autogenpb:nomutex` string uuid = 1; // `autogenpb:uuid:1e6e765c-0c77-4c81-a622-0d819bfcce9a` - string version = 2; // `autogenpb:version:v0.0.5` + string version = 2; // `autogenpb:version:v0.0.6` repeated Argv argvs = 3; string filename = 4; // `autogenpb:save` -- this enables autogenerated pb.Load() and pb.Save() } diff --git a/init.go b/init.go index 5ec40ff..fee4078 100644 --- a/init.go +++ b/init.go @@ -13,7 +13,6 @@ func Init(dest any, APPNAME string, anyString string, VERSION string) { me = new(AutoType) PB = new(Argv) me.all = NewArgvs() - me.debug = true // set the start time of the binary now := time.Now() diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go index 7cb8194..4bb56b8 100644 --- a/theMagicOfAutocomplete.go +++ b/theMagicOfAutocomplete.go @@ -162,20 +162,14 @@ func examineArgvHistory() { // loads the argv autocomplete history file me.Err = config.ForceCreateCacheDirPB(me.all, "argv", PB.AppInfo.APPNAME) if me.Err != nil { - // there is no history. - // ALWAYS KEEP THESE LINES AND THE panic() - // They are needed to debug autocomplete. // - // This code is only executed when the user is hitting tab in the shell, - // so this panic() is safe and can never be triggered by normal program execution. + // debug this // me.debug = true PB.Stddbg += fmt.Sprintf("config.CreateCacheDirPB() err(%v)\n", me.Err) PB.Stddbg += fmt.Sprintf("argvpb.Load() history file failed") printStderr() printStddbg() - me.all = NewArgvs() - me.debug = true return } if me.debug { -- cgit v1.2.3