Skip to content

Commit

Permalink
Update other places for windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
fatih committed May 18, 2021
1 parent c17596f commit 6bb940d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/auth/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func LoginCmd(ch *cmdutil.Helper) *cobra.Command {
bold := color.New(color.Bold)
bold.Printf("Confirmation Code: ")
boldGreen := bold.Add(color.FgGreen)
boldGreen.Println(deviceVerification.UserCode)
boldGreen.Fprintln(color.Output, deviceVerification.UserCode)

fmt.Printf("\nIf something goes wrong, copy and paste this URL into your browser: %s\n\n", printer.Bold(deviceVerification.VerificationCompleteURL))

Expand Down
4 changes: 2 additions & 2 deletions internal/update/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func CheckVersion(buildVersion string) error {
return fmt.Errorf("skipping update, reason: %s", updateInfo.Reason)
}

fmt.Fprintf(os.Stderr, "\n%s %s → %s\n",
fmt.Fprintf(color.Error, "\n%s %s → %s\n",
color.BlueString("A new release of pscale is available:"),
color.CyanString(buildVersion),
color.CyanString(updateInfo.ReleaseInfo.Version))
Expand All @@ -78,7 +78,7 @@ func CheckVersion(buildVersion string) error {
if cmdutil.IsUnderHomebrew(binpath) {
fmt.Fprintf(os.Stderr, "To upgrade, run: %s\n", "brew update && brew upgrade pscale")
}
fmt.Fprintf(os.Stderr, "%s\n", color.YellowString(updateInfo.ReleaseInfo.URL))
fmt.Fprintf(color.Error, "%s\n", color.YellowString(updateInfo.ReleaseInfo.URL))
return nil
}

Expand Down

0 comments on commit 6bb940d

Please sign in to comment.