start trimming out release things

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-01-30 12:11:42 -06:00
parent ca09e7cf47
commit 940096ff40
1 changed files with 25 additions and 12 deletions

37
draw.go
View File

@ -228,6 +228,28 @@ func (rs *RepoStatus) drawGitCommands() {
log.Warn("Did git pull here", err, b, output)
})
label := "merge " + rs.userWorkingName.String() + " to " + rs.develWorkingName.String()
rs.develMerge = newgrid.NewButton(label, func() {
rs.Disable()
if rs.runDevelMergeB() {
log.Warn("THINGS SEEM OK fullAutomation() returned true.")
} else {
log.Warn("THINGS FAILED fullAutomation() returned false")
}
rs.Enable()
})
label = "merge " + rs.develWorkingName.String() + " to " + rs.mainWorkingName.String()
rs.develMerge = newgrid.NewButton(label, func() {
rs.Disable()
if rs.runDevelMergeB() {
log.Warn("THINGS SEEM OK fullAutomation() returned true.")
} else {
log.Warn("THINGS FAILED fullAutomation() returned false")
}
rs.Enable()
})
rs.major = gadgets.NewBasicCombobox(newgrid, "major")
rs.major.Custom = func() {
rs.setTag()
@ -247,7 +269,7 @@ func (rs *RepoStatus) drawGitCommands() {
}
rs.revision.Hide()
newgrid.NewLabel("new tag version")
// newgrid.NewLabel("new tag version")
rs.newversion = newgrid.NewLabel("0.0.1")
rs.newversion.Hide()
@ -256,24 +278,15 @@ func (rs *RepoStatus) drawGitCommands() {
rs.generateCmd()
}
rs.versionMessage.Hide()
rs.versionCmdOutput = gadgets.NewOneLiner(newgrid, "tag cmd")
rs.versionCmdOutput.Hide()
label := "merge " + rs.mainWorkingName.String() + " to devel"
rs.develMerge = newgrid.NewButton(label, func() {
rs.Disable()
if rs.runFullAutomation() {
log.Warn("THINGS SEEM OK fullAutomation() returned true.")
} else {
log.Warn("THINGS FAILED fullAutomation() returned false")
}
rs.Enable()
})
rs.releaseVersion = newgrid.NewButton("tag and release new version", func() {
rs.Disable()
rs.runReleaseVersionB()
})
rs.releaseVersion.Hide()
newgrid.Margin()
newgrid.Pad()