guireleaser runs again
This commit is contained in:
parent
6a6ebf78b8
commit
1bafc298d3
29
common.go
29
common.go
|
@ -14,12 +14,12 @@ func (rs *RepoStatus) Changed() (string, bool) {
|
||||||
return "", false
|
return "", false
|
||||||
}
|
}
|
||||||
|
|
||||||
return rs.Changes(), rs.changed
|
return rs.getChanges(), rs.changed
|
||||||
}
|
}
|
||||||
|
|
||||||
// keeps a human readable list of things that have
|
// keeps a human readable list of things that have
|
||||||
// changed
|
// changed. todo: timestampe these?
|
||||||
func (rs *RepoStatus) Changes() string {
|
func (rs *RepoStatus) getChanges() string {
|
||||||
return rs.changes
|
return rs.changes
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,3 +165,26 @@ func (rs *RepoStatus) Build() bool {
|
||||||
log.Warn("build failed", name)
|
log.Warn("build failed", name)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (rs *RepoStatus) GetGoSumStatus() string {
|
||||||
|
return rs.goSumStatus.String()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rs *RepoStatus) SetGoSumStatus(s string) {
|
||||||
|
rs.goSumStatus.SetText(s)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rs *RepoStatus) GetTargetVersion() string {
|
||||||
|
return rs.targetReleaseVersion.String()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (rs *RepoStatus) IncrementVersion() bool {
|
||||||
|
return rs.setTag()
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: run this through the sanity check!
|
||||||
|
func (rs *RepoStatus) SetTargetVersion(s string) {
|
||||||
|
// todo: redo setTag to do increment logic
|
||||||
|
// func (rs *RepoStatus) setTag() bool {
|
||||||
|
rs.targetReleaseVersion.SetText(s)
|
||||||
|
}
|
||||||
|
|
4
draw.go
4
draw.go
|
@ -31,7 +31,3 @@ func (rs *RepoStatus) drawGitStatus(box *gui.Node) {
|
||||||
rs.speed = gadgets.NewOneLiner(newgrid, "refresh speed =")
|
rs.speed = gadgets.NewOneLiner(newgrid, "refresh speed =")
|
||||||
rs.speedActual = gadgets.NewOneLiner(newgrid, "speed actual =")
|
rs.speedActual = gadgets.NewOneLiner(newgrid, "speed actual =")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rs *RepoStatus) SetGoSumStatus(s string) {
|
|
||||||
rs.goSumStatus.SetText(s)
|
|
||||||
}
|
|
||||||
|
|
6
new.go
6
new.go
|
@ -15,14 +15,16 @@ func init() {
|
||||||
windowMap = make(map[string]*RepoStatus)
|
windowMap = make(map[string]*RepoStatus)
|
||||||
}
|
}
|
||||||
|
|
||||||
func ListAll() {
|
// deprecate this
|
||||||
|
func ListAllOld() {
|
||||||
for path, rs := range windowMap {
|
for path, rs := range windowMap {
|
||||||
log.Warn(rs.GetMasterVersion(), path)
|
log.Warn(rs.GetMasterVersion(), path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns the object for the path
|
// returns the object for the path
|
||||||
func FindPath(path string) *RepoStatus {
|
// deprecate this
|
||||||
|
func FindPathOld(path string) *RepoStatus {
|
||||||
if windowMap[path] == nil {
|
if windowMap[path] == nil {
|
||||||
log.Log(INFO, "FindPath() not initialized yet", path)
|
log.Log(INFO, "FindPath() not initialized yet", path)
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue