From d19f4a8911dc6b6baca272d6ee16b11eb6aea1a9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Sep 2025 03:27:49 -0500 Subject: new forge init() --- argv.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'argv.go') diff --git a/argv.go b/argv.go index 158aa23..076fc2b 100644 --- a/argv.go +++ b/argv.go @@ -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) +} -- cgit v1.2.3