summaryrefslogtreecommitdiff
path: root/complete.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-25 14:50:48 -0500
committerJeff Carr <[email protected]>2025-10-25 14:50:48 -0500
commit9e5b6bebd624f86b1cc5eccf5474b9e63cd24651 (patch)
tree49a81a60eb77488159a197ac5be22f63ecc22e3d /complete.go
parent3297ac713e589db0223fe734e0400d8e8459bdf5 (diff)
notsure
Diffstat (limited to 'complete.go')
-rw-r--r--complete.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/complete.go b/complete.go
index 1c815ec..d521f73 100644
--- a/complete.go
+++ b/complete.go
@@ -5,6 +5,8 @@ import (
"io"
"os"
"strings"
+
+ "go.wit.com/lib/protobuf/argvpb"
)
// has the variables for autocomplete
@@ -15,6 +17,11 @@ type Complete struct {
Stdout io.Writer // this is where Stdout
}
+func (p *Parser) WriteHelpForAutocompleteArgv() error {
+ argvpb.PB.Stderr += fmt.Sprintln("go-args.WriteHelpForAutocompleteArgv() not finished")
+ return nil
+}
+
// same as WriteHelpForSubcommand above, but can flip to STDERR and STDOUT
// most shell autocomplete behavior usually wants things that way
func (p *Parser) WriteHelpForAutocomplete(stderr io.Writer, stdout io.Writer, partial string, subcommand ...string) error {