release gui is quite nice
This commit is contained in:
parent
5fcdd19170
commit
9cf14144ed
|
@ -29,6 +29,7 @@ func globalDisplayOptions(box *gui.Node) {
|
||||||
|
|
||||||
grid.NewButton("make prepare-release", func() {
|
grid.NewButton("make prepare-release", func() {
|
||||||
me.Disable()
|
me.Disable()
|
||||||
|
me.release.box.Disable()
|
||||||
defer me.Enable()
|
defer me.Enable()
|
||||||
loop := me.repos.View.ReposSortByName()
|
loop := me.repos.View.ReposSortByName()
|
||||||
for loop.Scan() {
|
for loop.Scan() {
|
||||||
|
@ -46,6 +47,7 @@ func globalDisplayOptions(box *gui.Node) {
|
||||||
if setAllBranchesToMaster() {
|
if setAllBranchesToMaster() {
|
||||||
// if it succeeds, disable this button
|
// if it succeeds, disable this button
|
||||||
me.setBranchesToMasterB.Disable()
|
me.setBranchesToMasterB.Disable()
|
||||||
|
me.release.box.Enable()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
grid.NextRow()
|
grid.NextRow()
|
||||||
|
|
2
main.go
2
main.go
|
@ -95,6 +95,8 @@ func main() {
|
||||||
// so I can't trust even what I see. It's complicated right now still.
|
// so I can't trust even what I see. It's complicated right now still.
|
||||||
me.release.openrepo.Disable()
|
me.release.openrepo.Disable()
|
||||||
|
|
||||||
|
// disable the gui until the repos are scanned
|
||||||
|
me.release.box.Disable()
|
||||||
me.Disable()
|
me.Disable()
|
||||||
|
|
||||||
// parse config file and scan for .git repos
|
// parse config file and scan for .git repos
|
||||||
|
|
43
structs.go
43
structs.go
|
@ -26,22 +26,17 @@ type autoType struct {
|
||||||
// our view of the repositories
|
// our view of the repositories
|
||||||
repos *repoWindow
|
repos *repoWindow
|
||||||
|
|
||||||
// #### guireleaser repolist display options
|
|
||||||
// autoHideReadOnly *gui.Node
|
|
||||||
// autoHideReleased *gui.Node
|
|
||||||
// ignoreWhitelist *gui.Node
|
|
||||||
|
|
||||||
// #### autotypist Global Build Options
|
// #### autotypist Global Build Options
|
||||||
// what to change all the branches to
|
// what to change all the branches to
|
||||||
// so, as a developer, you can move all the repos
|
// so, as a developer, you can move all the repos
|
||||||
// to the 'devel' branch and then test a devel branch build
|
// to the 'devel' branch and then test a devel branch build
|
||||||
// then switch back to your 'username' branch and do a build there
|
// 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
|
// displays the preferred names used for the repo tree state
|
||||||
mainBranch *gadgets.BasicCombobox
|
// mainBranch *gadgets.BasicCombobox
|
||||||
develBranch *gadgets.BasicCombobox
|
// develBranch *gadgets.BasicCombobox
|
||||||
userBranch *gadgets.BasicCombobox
|
// userBranch *gadgets.BasicCombobox
|
||||||
|
|
||||||
// this button will regenerate everyones go.mod & go.sum
|
// this button will regenerate everyones go.mod & go.sum
|
||||||
rerunGoMod *gui.Node
|
rerunGoMod *gui.Node
|
||||||
|
@ -80,36 +75,8 @@ type autoType struct {
|
||||||
duration *gui.Node
|
duration *gui.Node
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
func (my *autoType) GoSrcPath() string {
|
func (my *autoType) GoSrcPath() string {
|
||||||
return my.goSrcPwd.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
|
|
||||||
}
|
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue