2024-02-17 08:39:55 -06:00
|
|
|
package repolist
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/gui"
|
|
|
|
"go.wit.com/lib/gui/repostatus"
|
|
|
|
)
|
|
|
|
|
|
|
|
var me *RepoList
|
|
|
|
|
|
|
|
func (b *RepoList) Disable() {
|
|
|
|
b.reposbox.Disable()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (b *RepoList) Enable() {
|
|
|
|
b.reposbox.Enable()
|
|
|
|
}
|
|
|
|
|
|
|
|
// this app's variables
|
|
|
|
type RepoList struct {
|
|
|
|
onlyMe bool
|
|
|
|
goSrcPwd string
|
|
|
|
autoHidePerfect bool
|
|
|
|
autoScan bool
|
|
|
|
allrepos map[string]*Repo
|
2024-02-18 10:49:52 -06:00
|
|
|
viewName string
|
2024-02-17 08:39:55 -06:00
|
|
|
|
|
|
|
reposbox *gui.Node
|
|
|
|
reposgrid *gui.Node
|
|
|
|
reposgroup *gui.Node
|
2024-02-18 10:49:52 -06:00
|
|
|
|
|
|
|
// put things here that can't be seen
|
2024-02-18 17:56:25 -06:00
|
|
|
blind *gui.Node
|
2024-02-19 19:43:21 -06:00
|
|
|
|
|
|
|
shownCount *gui.Node
|
|
|
|
hideFunction func(*Repo)
|
2024-02-20 14:45:09 -06:00
|
|
|
duration *gui.Node
|
2024-02-17 08:39:55 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
type Repo struct {
|
|
|
|
hidden bool
|
|
|
|
lasttagrev string
|
2024-02-19 19:43:21 -06:00
|
|
|
// lasttag string
|
|
|
|
giturl string
|
2024-02-17 08:39:55 -06:00
|
|
|
|
|
|
|
pLabel *gui.Node // path label
|
|
|
|
|
2024-02-19 16:28:24 -06:00
|
|
|
targetV *gui.Node // the target version
|
|
|
|
lastTag *gui.Node // last tagged version label
|
|
|
|
currentName *gui.Node // current branch name
|
2024-02-19 14:42:34 -06:00
|
|
|
currentVersion *gui.Node // current branch version
|
2024-02-19 16:28:24 -06:00
|
|
|
gitState *gui.Node // git state (dirty or not?)
|
|
|
|
goState *gui.Node // what is the state of the go.sum file
|
2024-02-17 08:39:55 -06:00
|
|
|
|
|
|
|
masterVersion *gui.Node // the master branch version
|
|
|
|
develVersion *gui.Node // the devel branch version
|
|
|
|
userVersion *gui.Node // the user branch version
|
|
|
|
|
|
|
|
endBox *gui.Node // a general box at the end of the row
|
|
|
|
statusButton *gui.Node // opens up the status window
|
|
|
|
diffButton *gui.Node // opens up the status window
|
|
|
|
|
2024-02-17 15:48:56 -06:00
|
|
|
Status *repostatus.RepoStatus
|
2024-02-17 08:39:55 -06:00
|
|
|
}
|