summaryrefslogtreecommitdiff
path: root/common.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-18 15:09:35 -0600
committerJeff Carr <[email protected]>2024-02-18 15:09:35 -0600
commitdc0040f0805e7a8ab3f47ea0e5ebffb03eda2b62 (patch)
tree3e6004de83011ad925b220ee899d82eaa5d11759 /common.go
parent02542bafe8f570d04a946851a4c993f3f4de6e18 (diff)
guireleaser runs again
Diffstat (limited to 'common.go')
-rw-r--r--common.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/common.go b/common.go
index 6f3ab4e..2374b33 100644
--- a/common.go
+++ b/common.go
@@ -16,6 +16,11 @@ func (r *RepoList) Hide() {
r.reposbox.Hide()
}
+func (r *RepoList) FindRepo(path string) *Repo {
+ repo, _ := me.allrepos[path]
+ return repo
+}
+
func (r *RepoList) AllRepos() []*Repo {
var all []*Repo
for _, repo := range me.allrepos {
@@ -71,6 +76,25 @@ func (r *Repo) ReadOnly() bool {
return r.Status.ReadOnly()
}
+func (r *Repo) LastTag() string {
+ return r.Status.GetLastTagVersion()
+}
+
+// returns the state of the GO go.mod and go.sum files
+// this is used to tell if they are valid and correctly reflect
+// the versions of the other GUI packages
+// at this point in time, there is _NO_ way to be check our
+// be sure that anything will run with older versions
+// because this are changing too often at this point
+// TODO: revisit this in 2025 or 2026
+func (r *Repo) GoState() string {
+ return r.Status.GetGoSumStatus()
+}
+
+func (r *Repo) SetGoState(s string) {
+ r.Status.SetGoSumStatus(s)
+}
+
func (r *Repo) IsPerfect() bool {
if r.dirtyLabel.String() == "PERFECT" {
return true