2024-01-14 10:36:46 -06:00
|
|
|
// watch all your go git repos
|
2024-01-13 23:27:46 -06:00
|
|
|
package main
|
|
|
|
|
2024-01-18 00:58:14 -06:00
|
|
|
import (
|
2024-01-18 05:03:04 -06:00
|
|
|
"go.wit.com/gui"
|
2024-01-18 00:58:14 -06:00
|
|
|
"go.wit.com/lib/gadgets"
|
2024-02-20 16:11:00 -06:00
|
|
|
"go.wit.com/lib/gui/repolist"
|
2024-01-13 23:27:46 -06:00
|
|
|
)
|
|
|
|
|
2024-01-23 11:22:33 -06:00
|
|
|
var me *autoType
|
2024-01-16 04:46:17 -06:00
|
|
|
|
2024-01-23 11:22:33 -06:00
|
|
|
type autoType struct {
|
2024-02-18 15:09:04 -06:00
|
|
|
myGui *gui.Node
|
2024-01-16 11:56:55 -06:00
|
|
|
|
2024-02-05 15:06:02 -06:00
|
|
|
releaseReasonS string // = "gocui dropdown select"
|
2024-02-20 16:11:00 -06:00
|
|
|
release releaseStruct
|
|
|
|
reposbox *gui.Node
|
|
|
|
reposgrid *gui.Node
|
|
|
|
reposgroup *gui.Node
|
2024-02-23 09:01:58 -06:00
|
|
|
current *repolist.RepoRow
|
2024-02-05 15:06:02 -06:00
|
|
|
|
2024-02-18 15:09:04 -06:00
|
|
|
// guireleaser window
|
2024-01-30 14:40:41 -06:00
|
|
|
mainWindow *gui.Node
|
|
|
|
mainBox *gui.Node
|
2024-01-20 18:45:55 -06:00
|
|
|
|
2024-02-18 15:09:04 -06:00
|
|
|
// our view of the repositories
|
|
|
|
repos *repoWindow
|
|
|
|
|
2024-02-20 14:44:38 -06:00
|
|
|
// #### guireleaser repolist display options
|
2024-11-13 17:23:33 -06:00
|
|
|
// autoHideReadOnly *gui.Node
|
|
|
|
// autoHideReleased *gui.Node
|
|
|
|
// ignoreWhitelist *gui.Node
|
2024-01-16 04:46:17 -06:00
|
|
|
|
2024-01-16 11:56:55 -06:00
|
|
|
// #### 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
|
|
|
|
|
|
|
|
// displays the preferred names used for the repo tree state
|
2024-01-18 00:58:14 -06:00
|
|
|
mainBranch *gadgets.BasicCombobox
|
2024-01-16 04:46:17 -06:00
|
|
|
develBranch *gadgets.BasicCombobox
|
2024-01-18 00:58:14 -06:00
|
|
|
userBranch *gadgets.BasicCombobox
|
2024-01-16 11:56:55 -06:00
|
|
|
|
2024-01-18 05:03:04 -06:00
|
|
|
// this button will regenerate everyones go.mod & go.sum
|
|
|
|
rerunGoMod *gui.Node
|
2024-01-20 18:45:55 -06:00
|
|
|
|
|
|
|
// if checked, will stop trying to os.Exec() things after failure
|
|
|
|
stopOnErrors *gui.Node
|
2024-01-21 03:22:51 -06:00
|
|
|
|
2024-01-23 11:22:33 -06:00
|
|
|
// button to attempt to autorebuild
|
|
|
|
autoRebuildButton *gui.Node
|
|
|
|
|
|
|
|
// checkbox for --dry-run
|
|
|
|
autoDryRun *gui.Node
|
2024-01-26 02:04:19 -06:00
|
|
|
|
|
|
|
// checkbox for intermittent scanning
|
|
|
|
scanEveryMinute *gui.Node
|
2024-01-23 11:22:33 -06:00
|
|
|
|
|
|
|
// The current working directory
|
|
|
|
autoWorkingPwd *gadgets.OneLiner
|
|
|
|
|
2024-02-01 13:51:17 -06:00
|
|
|
// shows what is being used as your home dir
|
2024-01-26 14:21:05 -06:00
|
|
|
userHomePwd *gadgets.OneLiner
|
|
|
|
|
2024-02-01 13:51:17 -06:00
|
|
|
// shows what directory being used as ~/go/src
|
2024-01-26 14:21:05 -06:00
|
|
|
goSrcPwd *gadgets.OneLiner
|
|
|
|
|
2024-02-01 13:51:17 -06:00
|
|
|
// button to download everything
|
2024-01-23 11:22:33 -06:00
|
|
|
downloadEverythingButton *gui.Node
|
2024-01-25 11:35:40 -06:00
|
|
|
|
2024-02-01 13:51:17 -06:00
|
|
|
// button to delete everythign ~/go/src & ~/go/pkg
|
2024-01-25 11:35:40 -06:00
|
|
|
deleteGoSrcPkgB *gui.Node
|
2024-02-01 13:51:17 -06:00
|
|
|
|
|
|
|
// button to set all repo branches to master
|
|
|
|
setBranchesToMasterB *gui.Node
|
2024-02-19 19:42:14 -06:00
|
|
|
|
|
|
|
// show the time it took to do a scan
|
|
|
|
duration *gui.Node
|
2024-01-16 04:46:17 -06:00
|
|
|
}
|
|
|
|
|
2024-02-18 15:09:04 -06:00
|
|
|
func (my *autoType) GoSrcPath() string {
|
|
|
|
return my.goSrcPwd.String()
|
|
|
|
}
|
|
|
|
|
2024-01-23 11:22:33 -06:00
|
|
|
/*
|
2024-01-15 08:11:08 -06:00
|
|
|
var cmds *gui.Node
|
|
|
|
var doit *gui.Node
|
2024-01-15 12:43:08 -06:00
|
|
|
var dryrun *gui.Node
|
2024-01-23 11:22:33 -06:00
|
|
|
*/
|
2024-01-13 23:27:46 -06:00
|
|
|
|
2024-02-18 15:09:04 -06:00
|
|
|
/*
|
2024-01-13 23:27:46 -06:00
|
|
|
type repo struct {
|
2024-01-18 00:58:14 -06:00
|
|
|
hidden bool
|
|
|
|
path string
|
2024-01-13 23:27:46 -06:00
|
|
|
lasttagrev string
|
2024-01-18 00:58:14 -06:00
|
|
|
lasttag string
|
2024-01-13 23:27:46 -06:00
|
|
|
|
2024-02-02 00:02:53 -06:00
|
|
|
// what version to release this package as
|
|
|
|
targetVersionS string
|
|
|
|
|
2024-01-13 23:27:46 -06:00
|
|
|
pLabel *gui.Node // path label
|
2024-01-15 08:11:08 -06:00
|
|
|
// bLabel *gui.Node // branch label
|
2024-02-02 01:42:13 -06:00
|
|
|
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
|
2024-02-02 00:02:53 -06:00
|
|
|
targetVersion *gui.Node // the final repo release version
|
2024-01-13 23:27:46 -06:00
|
|
|
|
2024-01-23 11:22:33 -06:00
|
|
|
statusButton *gui.Node // opens up the status window
|
2024-01-13 23:27:46 -06:00
|
|
|
|
|
|
|
status *repostatus.RepoStatus
|
|
|
|
}
|
2024-02-18 15:09:04 -06:00
|
|
|
*/
|