summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-18 08:54:24 -0500
committerJeff Carr <[email protected]>2025-09-18 08:54:24 -0500
commit19479f312f1a5da2d271198f4e1bd950844dcb98 (patch)
tree97e29a41cfc404040bedc9bf089ee2566855d0d0
parent58ce9ca53c0ac51713dc153d4c7c53593f8b3406 (diff)
still thinking this out
-rw-r--r--main.go11
-rw-r--r--structs.go3
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)