summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 03:15:16 -0500
committerJeff Carr <[email protected]>2025-09-11 03:15:16 -0500
commit1a5647f96a1d32dc2540faed3f8d6f9e7ca6304e (patch)
treed7bfeae559d49a6f3b7eb09fe300b18774943f27 /argv.go
parenta97eb38bc586bb9321648f22fade014bc07ba24f (diff)
use new forge.Init()
Diffstat (limited to 'argv.go')
-rw-r--r--argv.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/argv.go b/argv.go
index 17c036e..0a5a453 100644
--- a/argv.go
+++ b/argv.go
@@ -1,5 +1,10 @@
package main
+import (
+ "fmt"
+ "os"
+)
+
/*
this parses the command line arguements
*/
@@ -35,3 +40,16 @@ go-mod-clean will try to verify your go.* files are using the newest package ver
* Try to trim go.sum of non-existent entries
`
}
+
+func (a args) DoAutoComplete(argv []string) {
+ switch argv[0] {
+ case "checkout":
+ fmt.Println("user devel master ")
+ default:
+ if argv[0] == ARGNAME {
+ // list the subcommands here
+ fmt.Println("strict restore purge lax")
+ }
+ }
+ os.Exit(0)
+}