diff options
| author | Jeff Carr <[email protected]> | 2025-10-17 12:38:01 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-17 12:38:01 -0500 |
| commit | 8ad0160a0d62591fbdc26518f8d664ff0ea64b8d (patch) | |
| tree | e10e9d8c62a782c1ea85969aaca7e648a0eab012 | |
| parent | 9ab7015f12dcf2d629dd878a845dd29708f980ff (diff) | |
put things that I'm not sure about here
| -rw-r--r-- | notsure.go | 18 | ||||
| -rw-r--r-- | theMagicOfAutocomplete.go | 8 |
2 files changed, 18 insertions, 8 deletions
diff --git a/notsure.go b/notsure.go new file mode 100644 index 0000000..f61b9c5 --- /dev/null +++ b/notsure.go @@ -0,0 +1,18 @@ +package argvpb + +// these are things I'm not sure about doing +// or haven't figured out what to do with +// or are generally part of idiocracy + +// this is sill in development +// figure out how to trigger this +var argBash ArgsBash + +type ArgsBash struct { + Bash bool `arg:"--bash" help:"generate bash completion"` +} + +// returns the name of the executable registered for shell autocomplete +func AppName() string { + return me.ARGNAME +} diff --git a/theMagicOfAutocomplete.go b/theMagicOfAutocomplete.go index 902f1ea..a5516d2 100644 --- a/theMagicOfAutocomplete.go +++ b/theMagicOfAutocomplete.go @@ -15,14 +15,6 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" ) -// this is sill in development -// figure out how to trigger this -var argBash ArgsBash - -type ArgsBash struct { - Bash bool `arg:"--bash" help:"generate bash completion"` -} - func Autocomplete(dest any) *Argv { me = new(AutoArgs) // todo: redo this findAppInfo(dest) // parses back to main() for argv info |
