feat: add Homebrew and Scoop publishing scripts, enhance versioning metadata
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"charm.land/bubbles/v2/help"
|
||||
"charm.land/bubbles/v2/key"
|
||||
"charm.land/lipgloss/v2"
|
||||
|
||||
"git.morlana.online/f.weber/vault-tui/internal/cli"
|
||||
)
|
||||
|
||||
// screenHelp is the shape every keys.KeyMap.XxxHelp() screen-help value
|
||||
@@ -156,7 +158,12 @@ func (m *Model) viewHeader() string {
|
||||
// status line (profile/address, or the current toast) — one line total on
|
||||
// sizeTiny, two otherwise.
|
||||
func (m *Model) viewFooter(sh screenHelp) string {
|
||||
status := fmt.Sprintf("%s @ %s", m.a.Settings.Profile, m.a.Settings.Address)
|
||||
b := cli.Build()
|
||||
ver := b.Version
|
||||
if b.Prerelease {
|
||||
ver += " (prerelease)"
|
||||
}
|
||||
status := fmt.Sprintf("%s @ %s · %s", m.a.Settings.Profile, m.a.Settings.Address, ver)
|
||||
if toastStr := m.toastView(); toastStr != "" {
|
||||
status = toastStr
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user