diff options
Diffstat (limited to 'argv.go')
| -rw-r--r-- | argv.go | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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) +} |
