From 19479f312f1a5da2d271198f4e1bd950844dcb98 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 18 Sep 2025 08:54:24 -0500 Subject: [PATCH] still thinking this out --- main.go | 11 +++++------ structs.go | 3 ++- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/main.go b/main.go index 0093d82..d581730 100644 --- a/main.go +++ b/main.go @@ -44,13 +44,12 @@ func getVersion(repo *gitpb.Repo, name string) string { func main() { me = new(mainType) - prep.Bash2(ARGNAME, argv.DoAutoComplete) // this line should be: prep.Bash(&argv) - me.myGui = prep.Gui() // prepares the GUI package for go-args - me.pp = arg.MustParse(&argv) + me.auto = prep.Bash2(ARGNAME, argv.DoAutoComplete) // this line should be: prep.Bash(&argv) + me.myGui = prep.Gui() // prepares the GUI package for go-args + me.pp = arg.MustParse(&argv) // these three lines are becoming terrible syntax - me.forge = forgepb.Init() - - me.forge.ScanRepoDir() // looks for new dirs, checks existing repos for changes + me.forge = forgepb.Init() // init forge.pb + me.forge.ScanRepoDir() // looks for new dirs, checks existing repos for changes // initialize patches doPatchInit() diff --git a/structs.go b/structs.go index 15f04ea..53edd9b 100644 --- a/structs.go +++ b/structs.go @@ -28,7 +28,8 @@ func myServer() string { // this app's variables type mainType struct { - pp *arg.Parser // for parsing the command line args. Yay to alexf lint! + pp *arg.Parser // for parsing the command line args. Yay to alexflint! + auto *prep.Auto // more experiments for bash handling forge *forgepb.Forge // for holding the forge protobuf files myGui *prep.GuiPrep // for initializing the GUI toolkits foundPaths []string // stores gopaths to act on (when doing go-clone)