From b66c34e0ecdde82a30d51666f4aa6063bbffcdc5 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Fri, 20 Dec 2019 11:16:27 -0800 Subject: [PATCH] Output to stderr --- command/issue.go | 4 ++-- command/pr.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/command/issue.go b/command/issue.go index fcbbcd144..2847fce5e 100644 --- a/command/issue.go +++ b/command/issue.go @@ -103,7 +103,7 @@ func issueList(cmd *cobra.Command, args []string) error { return err } - fmt.Fprintf(colorableOut(cmd), "\nIssues for %s/%s\n\n", baseRepo.RepoOwner(), baseRepo.RepoName()) + fmt.Fprintf(colorableErr(cmd), "\nIssues for %s/%s\n\n", baseRepo.RepoOwner(), baseRepo.RepoName()) issues, err := api.IssueList(apiClient, baseRepo, state, labels, assignee, limit) if err != nil { @@ -243,7 +243,7 @@ func issueCreate(cmd *cobra.Command, args []string) error { return err } - fmt.Fprintf(colorableOut(cmd), "\nCreating issue in %s/%s\n\n", baseRepo.RepoOwner(), baseRepo.RepoName()) + fmt.Fprintf(colorableErr(cmd), "\nCreating issue in %s/%s\n\n", baseRepo.RepoOwner(), baseRepo.RepoName()) if isWeb, err := cmd.Flags().GetBool("web"); err == nil && isWeb { // TODO: move URL generation into GitHubRepository diff --git a/command/pr.go b/command/pr.go index 158c873ec..97e539e6a 100644 --- a/command/pr.go +++ b/command/pr.go @@ -137,7 +137,7 @@ func prList(cmd *cobra.Command, args []string) error { return err } - fmt.Fprintf(colorableOut(cmd), "\nPull requests for %s/%s\n\n", baseRepo.RepoOwner(), baseRepo.RepoName()) + fmt.Fprintf(colorableErr(cmd), "\nPull requests for %s/%s\n\n", baseRepo.RepoOwner(), baseRepo.RepoName()) limit, err := cmd.Flags().GetInt("limit") if err != nil {