Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
version checker: update secman cli version checker view and colors
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Apr 7, 2022
1 parent 03bb287 commit c0ebd5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/checker/checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ func Check(buildVersion string) {
s := lipgloss.NewStyle().PaddingLeft(2)
primary := lipgloss.NewStyle().Foreground(lipgloss.Color(constants.PRIMARY_COLOR))
yellow := lipgloss.NewStyle().Foreground(lipgloss.Color(constants.YELLOW_COLOR))
gray := lipgloss.NewStyle().Foreground(lipgloss.Color(constants.SECONDARY_COLOR))

latestVersion := api.GetLatest("secman-cli", true)
isFromHomebrew := isUnderHomebrew()
Expand Down Expand Up @@ -46,7 +47,7 @@ func Check(buildVersion string) {
primary.Render(latestVersion) + "\n")

if command() != "" {
fmt.Fprintf(stderr, yellow.Render("To upgrade, run: %s"), command() + "\n")
fmt.Fprintf(stderr, yellow.Render(" To upgrade, run: %s"), gray.Render(command()) + "\n")
}
}
}
Expand Down

0 comments on commit c0ebd5b

Please sign in to comment.