2024-01-14 10:36:46 -06:00
|
|
|
// watch all your go git repos
|
2024-01-13 23:27:46 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/gui/gui"
|
2024-01-14 10:36:46 -06:00
|
|
|
"go.wit.com/gui/gadgets"
|
2024-01-15 15:09:47 -06:00
|
|
|
"go.wit.com/gui/lib/repostatus"
|
2024-01-13 23:27:46 -06:00
|
|
|
)
|
|
|
|
|
2024-01-14 10:36:46 -06:00
|
|
|
// the main window nodes
|
2024-01-13 23:27:46 -06:00
|
|
|
var myGui *gui.Node
|
2024-01-14 10:36:46 -06:00
|
|
|
var reposwin *gadgets.BasicWindow
|
|
|
|
var reposbox *gui.Node
|
|
|
|
var reposgrid *gui.Node
|
|
|
|
var reposgroup *gui.Node
|
2024-01-16 04:46:17 -06:00
|
|
|
|
|
|
|
var me repoType
|
|
|
|
|
|
|
|
type repoType struct {
|
|
|
|
script [][]string
|
|
|
|
toMoveToBranch string // what the current working branch name is
|
2024-01-16 11:14:30 -06:00
|
|
|
autoHidePerfect *gui.Node
|
2024-01-16 04:46:17 -06:00
|
|
|
|
|
|
|
mainBranch *gadgets.BasicCombobox
|
|
|
|
develBranch *gadgets.BasicCombobox
|
|
|
|
userBranch *gadgets.BasicCombobox
|
|
|
|
}
|
|
|
|
|
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-13 23:27:46 -06:00
|
|
|
|
|
|
|
var allrepos []*repo
|
|
|
|
|
|
|
|
type repo struct {
|
2024-01-16 11:14:30 -06:00
|
|
|
hidden bool
|
2024-01-13 23:27:46 -06:00
|
|
|
path string
|
|
|
|
lasttagrev string
|
|
|
|
lasttag string
|
2024-01-15 08:11:08 -06:00
|
|
|
// tags []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
|
|
|
|
lastTag *gui.Node // last tagged version label
|
2024-01-13 23:27:46 -06:00
|
|
|
vLabel *gui.Node // version label
|
|
|
|
// tagsDrop *gui.Node // list of all tags
|
|
|
|
dirtyLabel *gui.Node // git state (dirty or not?)
|
|
|
|
|
2024-01-14 13:29:24 -06:00
|
|
|
masterName *gui.Node // the master branch name
|
2024-01-13 23:27:46 -06:00
|
|
|
masterVersion *gui.Node // the master branch version
|
2024-01-14 13:29:24 -06:00
|
|
|
develName *gui.Node // the devel branch name
|
2024-01-13 23:27:46 -06:00
|
|
|
develVersion *gui.Node // the devel branch version
|
2024-01-14 13:29:24 -06:00
|
|
|
userName *gui.Node // the jcarr branch name
|
|
|
|
userVersion *gui.Node // the jcarr branch version
|
2024-01-13 23:27:46 -06:00
|
|
|
|
|
|
|
cButton *gui.Node // commit button
|
|
|
|
pButton *gui.Node // push button
|
2024-01-16 11:14:30 -06:00
|
|
|
showButton *gui.Node // the button!
|
2024-01-13 23:27:46 -06:00
|
|
|
|
|
|
|
status *repostatus.RepoStatus
|
|
|
|
}
|