summaryrefslogtreecommitdiff
path: root/scan.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-17 15:48:56 -0600
committerJeff Carr <[email protected]>2024-02-17 15:48:56 -0600
commit985c42221758e40b2811bdd61d6941bda63dccc1 (patch)
treea884e73ccb1030500b018d1d5a7aa007663b6d8a /scan.go
parentb298958bcd460763e44348467c1c5bd4591b11e7 (diff)
export Status
Diffstat (limited to 'scan.go')
-rw-r--r--scan.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/scan.go b/scan.go
index 11c9dce..fa4e733 100644
--- a/scan.go
+++ b/scan.go
@@ -26,48 +26,48 @@ func (r *RepoList) ScanRepositories() (int, string) {
}
func (r *Repo) NewScan() bool {
- if r.status == nil {
- log.Warn("repo.status = nil. not initialized for some reason")
+ if r.Status == nil {
+ log.Warn("repo.Status = nil. not initialized for some reason")
return false
}
// first run the repostatus update
- r.status.UpdateNew()
+ r.Status.UpdateNew()
// now read those values and display them in our table
- mname := r.status.GetMasterBranchName()
- mver := r.status.GetMasterVersion()
+ mname := r.Status.GetMasterBranchName()
+ mver := r.Status.GetMasterVersion()
mver = mver + " (" + mname + ")"
r.masterVersion.SetLabel(mver)
- dname := r.status.GetDevelBranchName()
- dver := r.status.GetDevelVersion()
+ dname := r.Status.GetDevelBranchName()
+ dver := r.Status.GetDevelVersion()
if dname != "devel" {
dver = dver + " (" + dname + ")"
}
r.develVersion.SetLabel(dver)
- uname := r.status.GetUserBranchName()
- uver := r.status.GetUserVersion()
+ uname := r.Status.GetUserBranchName()
+ uver := r.Status.GetUserVersion()
usr, _ := user.Current()
if uname != usr.Username {
uver = uver + " (" + uname + ")"
}
r.userVersion.SetLabel(uver)
- cbname := r.status.GetCurrentBranchName()
- cbversion := r.status.GetCurrentBranchVersion()
- lasttag := r.status.GetLastTagVersion()
+ cbname := r.Status.GetCurrentBranchName()
+ cbversion := r.Status.GetCurrentBranchVersion()
+ lasttag := r.Status.GetLastTagVersion()
r.lastTag.SetLabel(lasttag)
r.vLabel.SetLabel(cbname + " " + cbversion)
- if c, ok := r.status.Changed(); ok {
+ if c, ok := r.Status.Changed(); ok {
c := strings.TrimSpace(c)
for _, line := range strings.Split(c, "\n") {
- log.Info(r.status.Path(), line)
+ log.Info(r.Status.Path(), line)
}
}
- status := r.status.GetStatus()
+ status := r.Status.GetStatus()
r.dirtyLabel.SetLabel(status)
if status == "PERFECT" {
if me.autoHidePerfect {