summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go13
1 files changed, 5 insertions, 8 deletions
diff --git a/main.go b/main.go
index 00da673..46ef9b1 100644
--- a/main.go
+++ b/main.go
@@ -41,18 +41,15 @@ func getVersion(repo *gitpb.Repo, name string) string {
func main() {
me = new(mainType)
- me.myGui = prep.Gui() // prepares the GUI package for go-args
- me.auto = prep.Bash3(&argv) // this line should be: prep.Bash(&argv)
- // me.auto = prep.Bash3(argv.DoAutoComplete, &argv) // this line should be: prep.Bash(&argv)
- // arg.MustParse(&argv) // these three lines are becoming terrible syntax
- // me.auto = prep.MustParse(&argv) // try to make this work?
+ // the current os.Argv processing with go-args
+ me.myGui = prep.Gui() // adds the GUI package args support
+ me.auto = prep.Bash(&argv) // adds auto complete to go-args
+ // the current forge init process
me.forge = forgepb.Init() // init forge.pb
me.forge.ScanRepoDir() // looks for new dirs, checks existing repos for changes
-
- // initialize patches
- doPatchInit()
+ doPatchInit() // initialize patches
// first find the repos or gopaths to operate on
if argv.Config != nil {