From d7bf83a82c78d87db131e06d48340adeca9d4e09 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Thu, 30 Jan 2020 14:00:43 -0600 Subject: [PATCH] strip color, add whitespace --- command/issue.go | 4 ++-- command/issue_test.go | 4 +++- command/pr.go | 4 ++-- command/pr_test.go | 4 +++- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/command/issue.go b/command/issue.go index 7637485a3..516bd3faf 100644 --- a/command/issue.go +++ b/command/issue.go @@ -175,8 +175,8 @@ func issueStatus(cmd *cobra.Command, args []string) error { out := colorableOut(cmd) - fmt.Fprint(out, utils.Gray("Relevant issues in ")) - fmt.Fprint(out, utils.Cyan(ghrepo.FullName(baseRepo))) + fmt.Fprintln(out, "") + fmt.Fprintf(out, "Relevant issues in %s\n", ghrepo.FullName(baseRepo)) fmt.Fprintln(out, "") printHeader(out, "Issues assigned to you") diff --git a/command/issue_test.go b/command/issue_test.go index b4e56dc29..98ba6119e 100644 --- a/command/issue_test.go +++ b/command/issue_test.go @@ -58,7 +58,9 @@ func TestIssueStatus_blankSlate(t *testing.T) { t.Errorf("error running command `issue status`: %v", err) } - expectedOutput := `Relevant issues in OWNER/REPO + expectedOutput := ` +Relevant issues in OWNER/REPO + Issues assigned to you There are no issues assigned to you diff --git a/command/pr.go b/command/pr.go index 561ab387e..624debac0 100644 --- a/command/pr.go +++ b/command/pr.go @@ -104,8 +104,8 @@ func prStatus(cmd *cobra.Command, args []string) error { out := colorableOut(cmd) - fmt.Fprint(out, utils.Gray("Relevant pull requests in ")) - fmt.Fprint(out, utils.Cyan(ghrepo.FullName(baseRepo))) + fmt.Fprintln(out, "") + fmt.Fprintf(out, "Relevant pull requests in %s\n", ghrepo.FullName(baseRepo)) fmt.Fprintln(out, "") printHeader(out, "Current branch") diff --git a/command/pr_test.go b/command/pr_test.go index 42f210c13..3fbfb0b8e 100644 --- a/command/pr_test.go +++ b/command/pr_test.go @@ -136,7 +136,9 @@ func TestPRStatus_blankSlate(t *testing.T) { t.Errorf("error running command `pr status`: %v", err) } - expected := `Relevant pull requests in OWNER/REPO + expected := ` +Relevant pull requests in OWNER/REPO + Current branch There is no pull request associated with [blueberries]