diff options
| author | Jeff Carr <[email protected]> | 2024-02-17 08:39:55 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-17 08:39:55 -0600 |
| commit | 1b103f2a1c9beb87e61ebbd04fe7cdbf605988ed (patch) | |
| tree | 4cf62152850f85474118d9d7e61f0de7f1ffbbdf /structs.go | |
initial importv0.0.1
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/structs.go b/structs.go new file mode 100644 index 0000000..1a779a4 --- /dev/null +++ b/structs.go @@ -0,0 +1,55 @@ +package repolist + +import ( + "go.wit.com/gui" + "go.wit.com/lib/gadgets" + "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 + + reposwin *gadgets.BasicWindow + reposbox *gui.Node + reposgrid *gui.Node + reposgroup *gui.Node +} + +type Repo struct { + hidden bool + lasttagrev string + lasttag string + giturl string + + pLabel *gui.Node // path 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 + + 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 + + status *repostatus.RepoStatus +} |
