summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 03:27:49 -0500
committerJeff Carr <[email protected]>2025-09-11 03:27:49 -0500
commitd19f4a8911dc6b6baca272d6ee16b11eb6aea1a9 (patch)
tree71a62e85ff8657322410b36f82590801a9466127 /argv.go
parent54811a5bc1906f5b20e9673621d54ffff9570392 (diff)
new forge init()
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/argv.go b/argv.go
index 158aa23..076fc2b 100644
--- a/argv.go
+++ b/argv.go
@@ -1,5 +1,10 @@
package main
+import (
+ "fmt"
+ "os"
+)
+
/*
this parses the command line arguements
@@ -31,3 +36,18 @@ Examples:
go-clone go.wit.com/apps/go-clone # 'git clone' go-clone
`
}
+
+func (a args) DoAutoComplete(argv []string) {
+ switch argv[0] {
+ case "checkout":
+ fmt.Println("user devel master ")
+ case "--recursive":
+ fmt.Println("true false")
+ default:
+ if argv[0] == ARGNAME {
+ // list the subcommands here
+ fmt.Println("--dry-run --recursive --work")
+ }
+ }
+ os.Exit(0)
+}