diff options
| author | Jeff Carr <[email protected]> | 2025-01-06 15:44:56 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-06 15:44:56 -0600 |
| commit | 362ea63b9759235d91ec2cc530abf2c2faf95304 (patch) | |
| tree | 5351948857d4baef1da42535fd54d5d1d98bc514 /main.go | |
| parent | bc5994b84e50d741071903f97c9002a5baf661b6 (diff) | |
adding bash completion handling
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -3,6 +3,7 @@ package main // An app to submit patches for the 30 GO GUI repos import ( + "os" "strings" "go.wit.com/dev/alexflint/arg" @@ -31,6 +32,15 @@ func getVersion(repo *gitpb.Repo, name string) string { func main() { me = new(mainType) me.pp = arg.MustParse(&argv) + + if argv.Bash { + argv.doBash() + os.Exit(0) + } + if len(argv.BashAuto) != 0 { + argv.doBashAuto() + os.Exit(0) + } me.urlbase = argv.URL if me.urlbase == "" { me.urlbase = "https://go.wit.com/" |
