From 435b9fdee2f51170aacf21f14a0118c89c84e166 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 2 Oct 2025 18:35:52 -0500 Subject: make a smart argv() function --- bash.orig.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'bash.orig.go') diff --git a/bash.orig.go b/bash.orig.go index 52920eb..ecd6bdd 100644 --- a/bash.orig.go +++ b/bash.orig.go @@ -26,14 +26,15 @@ var myAuto *AutoArgs // this is a work in progress type AutoArgs struct { - id int // should be unique - hidden bool // don't update the toolkits when it's hidden - Auto func([]string) // the function for shell autocomplete - appName string // a good way to track the name of the binary ? - examples func() string // some examples - pp *arg.Parser // for parsing the command line args. Yay to alexf lint! - autoFunc func(*Auto) // also a function for autocomplete - match map[string]string // maps for strings + id int // should be unique + hidden bool // don't update the toolkits when it's hidden + Auto func([]string) // the function for shell autocomplete + appName string // a good way to track the name of the binary ? + examples func() string // some examples + buildtime func() (string, string) // some examples + pp *arg.Parser // for parsing the command line args. Yay to alexf lint! + autoFunc func(*Auto) // also a function for autocomplete + match map[string]string // maps for strings } // print out auto complete debugging info -- cgit v1.2.3