diff options
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -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 |
