From dc0040f0805e7a8ab3f47ea0e5ebffb03eda2b62 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 18 Feb 2024 15:09:35 -0600 Subject: guireleaser runs again --- common.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'common.go') 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 -- cgit v1.2.3