Skip to content

Commit

Permalink
ACC-3366: Improve version check formatting (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohsabry authored Mar 11, 2024
1 parent 123f2fa commit 2160da5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,9 @@ func checkVersion(ctx context.Context, version string, logger progress.Logger) {
}

logger.Info(color.Yellow("🚨🚨🚨 Your version of tb is out of date 🚨🚨🚨"))
logger.Infof("%s %s", color.Yellow("Current version:"), color.Cyan(version))
logger.Infof("%s %s", color.Yellow("Latest version: "), color.Cyan(latestRelease))
logger.Infof("%s %s", color.Yellow("Please consider upgrading by running: "), color.Cyan("brew update && brew upgrade tb"))
logger.Infof("%s: %s", color.Yellow("Current version"), color.Cyan(version))
logger.Infof("%s: %s", color.Yellow("Latest version"), color.Cyan(latestRelease))
logger.Infof("%s: %s", color.Yellow("Please consider upgrading by running"), color.Cyan("brew update && brew upgrade tb"))

// Tell people to stay safe if major version
if latestVersion.Major > currentVersion.Major {
Expand Down

0 comments on commit 2160da5

Please sign in to comment.