diff options
| author | Jeff Carr <[email protected]> | 2025-09-11 03:27:49 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-11 03:27:49 -0500 |
| commit | d19f4a8911dc6b6baca272d6ee16b11eb6aea1a9 (patch) | |
| tree | 71a62e85ff8657322410b36f82590801a9466127 /argv.go | |
| parent | 54811a5bc1906f5b20e9673621d54ffff9570392 (diff) | |
new forge init()
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) +} |
