cli/pkg
Mislav Marohnić 2139e763fb Write Cobra deprecation messages to stderr
We used to do the equivalent of `rootCmd.SetOut(os.Stdout)` because we
thought that Cobra's "Out" stream represents standard output. However,
upon closer inspection it turns out that this is Cobra's stream for
usage errors and deprecation warnings, and those we want written to
stderr as well. It is not clear to me why Cobra maintains a distinction
between "Out" and "Err" streams since both seem to go to sdterr by
default.

This change also ceases our usage of `command.Print()` functions in
favor of explicitly writing to `IOStreams.Out/ErrOut`.
2022-05-23 20:23:42 +02:00
..
cmd Write Cobra deprecation messages to stderr 2022-05-23 20:23:42 +02:00
cmdutil Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
export Allow nil to truncate template function 2022-05-16 08:58:20 -07:00
extensions Add extension upgrade --dry-run (#5098) 2022-04-12 07:18:08 +00:00
findsh go fmt 2021-12-02 16:12:24 +01:00
githubtemplate Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
httpmock Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
iostreams Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
jsoncolor Fix "null" display in colored JSON output 2021-05-12 16:56:52 +02:00
liveshare Resolve feedback 2022-04-21 14:56:55 -07:00
markdown Preserve newlines in GitHub-flavored markdown 2022-01-13 19:41:01 +01:00
prompt Have NewAskStubber perform auto-cleanup 2022-01-14 18:52:00 +01:00
search Add the ability to pass teams to review-requested (#5538) 2022-05-02 19:07:16 +02:00
set Add GH_HOST to hosts list if it has corresponding auth token (#5087) 2022-01-29 07:37:24 +00:00
surveyext issue comment: support quotes and arguments in EDITOR value 2022-04-29 18:05:39 +02:00
text Replace uses of strings.Title (#5623) 2022-05-12 13:52:21 +00:00