add a 'forge mode' concept

This commit is contained in:
Jeff Carr 2025-03-02 03:03:29 -06:00
parent 948c47b7ff
commit d953ae8db6
3 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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