diff options
Diffstat (limited to 'draw.go')
| -rw-r--r-- | draw.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -222,6 +222,15 @@ func (rs *RepoStatus) drawGitCommands() { newgrid.Pad() } + +func (rs *RepoStatus) SetVersion(a, b, c string, reason string) { + rs.major.SetText(a) + rs.minor.SetText(b) + rs.revision.SetText(c) + + rs.versionMessage.SetLabel(reason) +} + func (rs *RepoStatus) setTag() bool { lasttag := rs.lasttag.String() var major, minor, revision string |
