diff options
| author | Jeff Carr <[email protected]> | 2024-02-20 06:54:11 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-20 06:54:11 -0600 |
| commit | d16cc92286616ab39926c21bb43dbfc3ec4e2486 (patch) | |
| tree | 333691fd24670d1be297a9543231c543b952e3d9 /common.go | |
| parent | ae7e9ba42c44687db038cacf7e0ae845e497f6e0 (diff) | |
first pass at cleaning up the go.* logic
Diffstat (limited to 'common.go')
| -rw-r--r-- | common.go | 34 |
1 files changed, 11 insertions, 23 deletions
@@ -45,6 +45,13 @@ func (rs *RepoStatus) GoPath() string { return rs.goPath.String() } +func (rs *RepoStatus) IsPrimitive() bool { + if rs.primitive.String() == "true" { + return true + } + return false +} + // returns the filesystem path to the repo func (rs *RepoStatus) Path() string { return rs.realPath.String() @@ -98,15 +105,6 @@ func (rs *RepoStatus) IsGoLang() bool { return false } -/* -func (rs *RepoStatus) Initialized() bool { - log.Log(CHANGE, "checking Initialized()") - if rs == nil {return false} - if rs.parent == nil {return false} - return true -} -*/ - func (rs *RepoStatus) RepoType() string { if !rs.IsGoLang() { return "" @@ -151,20 +149,14 @@ func (rs *RepoStatus) Build() bool { return false } -// moved to repolist -func (rs *RepoStatus) GetGoSumStatusOld() string { - return rs.goSumStatus.String() -} - -// moved to repolist -func (rs *RepoStatus) SetGoSumStatusOld(s string) { - rs.goSumStatus.SetText(s) -} - func (rs *RepoStatus) GetTargetVersion() string { return rs.targetReleaseVersion.String() } +func (rs *RepoStatus) GetCurrentVersion() string { + return rs.currentVersion.String() +} + func (rs *RepoStatus) IncrementVersion() bool { return rs.setTag() } @@ -197,10 +189,6 @@ func (rs *RepoStatus) MirrorGitState() *gui.Node { return rs.gitState.MirrorValue() } -func (rs *RepoStatus) MirrorGoState() *gui.Node { - return rs.goSumStatus.MirrorValue() -} - func (rs *RepoStatus) MirrorMasterVersion() *gui.Node { return rs.mainBranchVersion.MirrorValue() } |
