summaryrefslogtreecommitdiff
path: root/draw.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-24 01:57:01 -0600
committerJeff Carr <[email protected]>2024-01-24 01:57:01 -0600
commit3c3dc5309a9b7b0c16de81333c569674c6c26ee8 (patch)
tree23a58c6014737d1a8e7aa8aa198d2c9a8af05e66 /draw.go
parent7c82f918aa8da546f038ed5cf4c682f5787a191f (diff)
release automation
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'draw.go')
-rw-r--r--draw.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/draw.go b/draw.go
index cbad66b..c59af83 100644
--- a/draw.go
+++ b/draw.go
@@ -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