Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update information line is now red, Fixing #280 #297

Merged
merged 4 commits into from Jun 27, 2017
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/addons_providers_plans_list.go
Expand Up @@ -14,7 +14,7 @@ var (
Usage: "List plans",
Action: func(c *cli.Context) {
if len(c.Args()) != 1 {
cli.ShowCommandHelp(c, "addon-plans")
cli.ShowCommandHelp(c, "addons-plans")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this in this pr?

return
}
if err := addon_providers.Plans(c.Args()[0]); err != nil {
Expand Down
5 changes: 5 additions & 0 deletions io/style.go
Expand Up @@ -7,6 +7,7 @@ const (
boldBlueToken = "\033[1;34m"
yellowToken = "\033[33m"
greenToken = "\033[32m"
boldRedToken = "\033[1;31m"
grayToken = "\033[90m"
lightGrayToken = "\033[1;37m"
resetToken = "\033[0m"
Expand All @@ -20,6 +21,10 @@ func BoldBlue(s string) string {
return fmt.Sprintf("%s%s%s", boldBlueToken, s, resetToken)
}

func BoldRed(s string) string {
return fmt.Sprintf("%s%s%s", boldRedToken, s, resetToken)
}

func Green(s string) string {
return fmt.Sprintf("%s%s%s", greenToken, s, resetToken)
}
Expand Down
4 changes: 2 additions & 2 deletions update/check.go
Expand Up @@ -48,8 +48,8 @@ func Check() error {
return nil
}

io.Statusf("Your Scalingo client (%s) is out-of-date: some features may not work correctly.\n", version)
io.Infof("Please update to '%s' by reinstalling it: http://cli.scalingo.com\n", lastVersion)
io.Statusf(io.BoldRed("Your Scalingo client (%s) is out-of-date: some features may not work correctly.\n"), version)
io.Infof(io.BoldRed("Please update to '%s' by reinstalling it: http://cli.scalingo.com\n"), lastVersion)
return nil
}

Expand Down