summaryrefslogtreecommitdiff
path: root/argv.go
diff options
context:
space:
mode:
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)
+}