summaryrefslogtreecommitdiff
path: root/addRepo.go
diff options
context:
space:
mode:
Diffstat (limited to 'addRepo.go')
-rw-r--r--addRepo.go32
1 files changed, 24 insertions, 8 deletions
diff --git a/addRepo.go b/addRepo.go
index 3ea8042..2535e3f 100644
--- a/addRepo.go
+++ b/addRepo.go
@@ -11,7 +11,8 @@ import (
func (r *Repo) Hide() {
r.pLabel.Hide()
r.lastTag.Hide()
- r.vLabel.Hide()
+ r.currentName.Hide()
+ r.currentVersion.Hide()
r.masterVersion.Hide()
r.develVersion.Hide()
@@ -33,7 +34,8 @@ func (r *Repo) Hidden() bool {
func (r *Repo) Show() {
r.pLabel.Show()
r.lastTag.Show()
- r.vLabel.Show()
+ r.currentName.Show()
+ r.currentVersion.Show()
r.masterVersion.Show()
r.develVersion.Show()
@@ -80,13 +82,19 @@ func (r *RepoList) addRepo(grid *gui.Node, path string, master string, devel str
newRepo.hidden = false
switch r.viewName {
case "autotypist":
- newRepo.lastTag = grid.NewLabel("").SetProgName("lastTag")
+ newRepo.lastTag = newRepo.Status.MirrorLastTag()
+ grid.Append(newRepo.lastTag)
newRepo.masterVersion = grid.NewLabel("").SetProgName("masterVersion")
newRepo.develVersion = grid.NewLabel("").SetProgName("develVersion")
newRepo.userVersion = grid.NewLabel("").SetProgName("userVersion")
newRepo.targetV = r.blind.NewLabel("")
newRepo.dirtyLabel = grid.NewLabel("")
- newRepo.vLabel = grid.NewLabel("").SetProgName("current")
+
+ newRepo.currentName = newRepo.Status.MirrorCurrentName()
+ grid.Append(newRepo.currentName)
+ newRepo.currentVersion = newRepo.Status.MirrorCurrentVersion()
+ grid.Append(newRepo.currentVersion)
+
newRepo.endBox = grid.NewHorizontalBox("HBOX")
newRepo.endBox.NewButton("Configure", func() {
if newRepo.Status == nil {
@@ -143,12 +151,20 @@ func (r *RepoList) addRepo(grid *gui.Node, path string, master string, devel str
}
newRepo.goState = r.blind.NewLabel("in the blind")
case "guireleaser":
- newRepo.targetV = grid.NewLabel("")
- newRepo.lastTag = grid.NewLabel("").SetProgName("lastTag")
- newRepo.masterVersion = grid.NewLabel("").SetProgName("masterVersion")
+ newRepo.targetV = newRepo.Status.MirrorTargetVersion()
+ grid.Append(newRepo.targetV)
+
+ newRepo.lastTag = newRepo.Status.MirrorLastTag()
+ grid.Append(newRepo.lastTag)
+
+ newRepo.currentName = newRepo.Status.MirrorCurrentName()
+ grid.Append(newRepo.currentName)
+ newRepo.currentVersion = newRepo.Status.MirrorCurrentVersion()
+ grid.Append(newRepo.currentVersion)
+
+ newRepo.masterVersion = r.blind.NewLabel("").SetProgName("masterVersion")
newRepo.dirtyLabel = grid.NewLabel("")
newRepo.goState = grid.NewLabel("not in the blind")
- newRepo.vLabel = grid.NewLabel("").SetProgName("current")
newRepo.endBox = grid.NewHorizontalBox("HBOX")
newRepo.endBox.NewButton("Configure", func() {
if newRepo.Status == nil {