diff options
| author | Jeff Carr <[email protected]> | 2024-01-24 01:57:01 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-24 01:57:01 -0600 |
| commit | 3c3dc5309a9b7b0c16de81333c569674c6c26ee8 (patch) | |
| tree | 23a58c6014737d1a8e7aa8aa198d2c9a8af05e66 /draw.go | |
| parent | 7c82f918aa8da546f038ed5cf4c682f5787a191f (diff) | |
release automation
Signed-off-by: Jeff Carr <[email protected]>
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 |
