summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-06 15:44:56 -0600
committerJeff Carr <[email protected]>2025-01-06 15:44:56 -0600
commit362ea63b9759235d91ec2cc530abf2c2faf95304 (patch)
tree5351948857d4baef1da42535fd54d5d1d98bc514 /main.go
parentbc5994b84e50d741071903f97c9002a5baf661b6 (diff)
adding bash completion handling
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index 4cc6181..05e72a6 100644
--- a/main.go
+++ b/main.go
@@ -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/"