From 16d7cb2696fdad119fb58cadd6f2220ba8c7aad5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 18 Sep 2025 16:53:44 -0500 Subject: geez. this makes things easier --- bash.new.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bash.new.go') diff --git a/bash.new.go b/bash.new.go index dddd16d..dee60c5 100644 --- a/bash.new.go +++ b/bash.new.go @@ -298,10 +298,11 @@ func Bash2(argname string, appAutoFunc func(*Auto)) *Auto { } // also try to parse/send cur (?) -func Bash3(appAutoFunc func(*Auto), dest any) *Auto { +// func Bash3(appAutoFunc func(*Auto), dest any) *Auto { +func Bash3(dest any) *Auto { myAuto = new(AutoArgs) // myAuto.appName = argname - myAuto.autoFunc = appAutoFunc + // myAuto.autoFunc = appAutoFunc newTest(dest) pb := parseArgv(myAuto.appName) @@ -347,7 +348,7 @@ func Bash3(appAutoFunc func(*Auto), dest any) *Auto { } if pb.IsAuto { - appAutoFunc(pb) // run the autocomplete function the user made for their application + myAuto.autoFunc(pb) // run the autocomplete function the user made for their application if pb.Debug { // TODO: // check here to see if there was any completion text sent -- cgit v1.2.3