summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-02 03:03:29 -0600
committerJeff Carr <[email protected]>2025-03-02 03:03:29 -0600
commitd953ae8db666cf4f88d330b17f85af77ba03f8b9 (patch)
treea211b9ba66469176cd911f2096eb4c5f021f3865
parent948c47b7ff5939d53636e28270fab49087ce184d (diff)
add a 'forge mode' concept
-rw-r--r--Makefile2
-rw-r--r--doGui.go4
-rw-r--r--structs.go8
3 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 9eec491..75918d1 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
# make andlabs # try the andlabs gui plugin (uses GTK)
default: install
- forge --gui andlabs
+ forge
vet:
@GO111MODULE=off go vet
diff --git a/doGui.go b/doGui.go
index 1d8e04c..ec2fe79 100644
--- a/doGui.go
+++ b/doGui.go
@@ -122,6 +122,10 @@ func drawWindow(win *gadgets.BasicWindow) {
me.gitAuthor.SetText(author)
}
+ me.forgeMode = gadgets.NewOneLiner(grid, "Forge mode")
+ me.forgeMode.SetText(me.forge.GetMode())
+ grid.NextRow()
+
// select the branch you want to test, build and develop against
// this lets you select your user branch, but, when you are happy
// you can merge everything into the devel branch and make sure it actually
diff --git a/structs.go b/structs.go
index 6aff295..965944d 100644
--- a/structs.go
+++ b/structs.go
@@ -53,11 +53,9 @@ type mainType struct {
// if checked, it will check all your repos for changes
autoScanReposCB *gui.Node
- // what is being used as primary directory for your work
- goSrcPwd *gadgets.OneLiner
-
- // ENV GIT_AUTHOR NAME and EMAIL
- gitAuthor *gadgets.OneLiner
+ goSrcPwd *gadgets.OneLiner // what is being used as primary directory for your work
+ gitAuthor *gadgets.OneLiner // ENV GIT_AUTHOR NAME and EMAIL
+ forgeMode *gadgets.OneLiner // is the user in 'master', 'devel' or 'user' branches
// displays a summary of all the repos
// has total dirty, total read-only