From d953ae8db666cf4f88d330b17f85af77ba03f8b9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 2 Mar 2025 03:03:29 -0600 Subject: add a 'forge mode' concept --- Makefile | 2 +- doGui.go | 4 ++++ structs.go | 8 +++----- 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 -- cgit v1.2.3