summaryrefslogtreecommitdiff
path: root/complete.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-28 21:33:20 -0500
committerJeff Carr <[email protected]>2025-10-28 21:33:20 -0500
commit4320bb66a4fdeaab25af5bfcd5badf43b354f317 (patch)
treedd050c1eed782cbc105a94d4911c6a9d0af06684 /complete.go
parent61d1215aec93fd8f38c95e43d212556621e66bb4 (diff)
this all needs to be redone
Diffstat (limited to 'complete.go')
-rw-r--r--complete.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/complete.go b/complete.go
index 6f6478a..4abd80e 100644
--- a/complete.go
+++ b/complete.go
@@ -21,11 +21,6 @@ var BUILDTIME string
// used for shell auto completion
var APPNAME string = "wit" // todo: get this from $0 ?
-func (args) MustParse() error {
- me.pp = arg.MustParseArgv(&argv)
- return nil
-}
-
/*
func (args) MustParse() error {
me.pp = arg.MustParse(&argv)
@@ -83,6 +78,11 @@ func (a args) DoAutoComplete() error {
return err
}
+func (args) MustParse() error {
+ me.pp = arg.MustParseArgv(&argv)
+ return nil
+}
+
func (args) Match() bool {
base := []string{"build", "upgrade", "git", "publish", "pb", "linux", "droplet", "test"}
base = append(base, "--version", "--force", "--all", "--dry-run", "--verbose")