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