release gui is quite nice

This commit is contained in:
Jeff Carr 2024-11-13 18:32:53 -06:00
parent 5fcdd19170
commit 9cf14144ed
3 changed files with 9 additions and 38 deletions

View File

@ -29,6 +29,7 @@ func globalDisplayOptions(box *gui.Node) {
grid.NewButton("make prepare-release", func() {
me.Disable()
me.release.box.Disable()
defer me.Enable()
loop := me.repos.View.ReposSortByName()
for loop.Scan() {
@ -46,6 +47,7 @@ func globalDisplayOptions(box *gui.Node) {
if setAllBranchesToMaster() {
// if it succeeds, disable this button
me.setBranchesToMasterB.Disable()
me.release.box.Enable()
}
})
grid.NextRow()

View File

@ -95,6 +95,8 @@ func main() {
// so I can't trust even what I see. It's complicated right now still.
me.release.openrepo.Disable()
// disable the gui until the repos are scanned
me.release.box.Disable()
me.Disable()
// parse config file and scan for .git repos

View File

@ -26,22 +26,17 @@ type autoType struct {
// our view of the repositories
repos *repoWindow
// #### guireleaser repolist display options
// autoHideReadOnly *gui.Node
// autoHideReleased *gui.Node
// ignoreWhitelist *gui.Node
// #### autotypist Global Build Options
// what to change all the branches to
// so, as a developer, you can move all the repos
// to the 'devel' branch and then test a devel branch build
// then switch back to your 'username' branch and do a build there
toMoveToBranch string
// toMoveToBranch string
// displays the preferred names used for the repo tree state
mainBranch *gadgets.BasicCombobox
develBranch *gadgets.BasicCombobox
userBranch *gadgets.BasicCombobox
// mainBranch *gadgets.BasicCombobox
// develBranch *gadgets.BasicCombobox
// userBranch *gadgets.BasicCombobox
// this button will regenerate everyones go.mod & go.sum
rerunGoMod *gui.Node
@ -80,36 +75,8 @@ type autoType struct {
duration *gui.Node
}
/*
func (my *autoType) GoSrcPath() string {
return my.goSrcPwd.String()
}
/*
var cmds *gui.Node
var doit *gui.Node
var dryrun *gui.Node
*/
/*
type repo struct {
hidden bool
path string
lasttagrev string
lasttag string
// what version to release this package as
targetVersionS string
pLabel *gui.Node // path label
// bLabel *gui.Node // branch label
lastTag *gui.Node // last tagged version label
vLabel *gui.Node // version label
dirtyLabel *gui.Node // git state (dirty or not?)
goSumStatus *gui.Node // what is the state of the go.sum file
targetVersion *gui.Node // the final repo release version
statusButton *gui.Node // opens up the status window
status *repostatus.RepoStatus
}
*/