diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -4,7 +4,6 @@ import ( "os" "strings" - "go.wit.com/dev/alexflint/arg" "go.wit.com/lib/gui/prep" "go.wit.com/lib/protobuf/forgepb" "go.wit.com/lib/protobuf/gitpb" @@ -18,19 +17,16 @@ var BUILDTIME string // used for shell auto completion var ARGNAME string = "go-mod-clean" -var pp *arg.Parser +var auto *prep.Auto // more experiments for bash handling var forge *forgepb.Forge // var check *gitpb.Repo var configSave bool func main() { + auto = prep.Bash3(&argv) // add support for bash autocomplete with go-arg // this line must be before anything else log.Info("go-mod-clean version", VERSION, "built on", BUILDTIME) - // command line parsing & handling - prep.Bash(ARGNAME, argv.DoAutoComplete) // todo: make this: prep.Bash(argv) - pp = arg.MustParse(&argv) - forge = forgepb.Init() // figure out what directory we are running in |
