strip color, add whitespace
This commit is contained in:
parent
34248f9892
commit
d7bf83a82c
4 changed files with 10 additions and 6 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue