cli/pkg/cmd/pr
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
..
checkout Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
checks Always clear screen when watching PR checks (#5678) 2022-05-23 08:38:50 +02:00
close Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
comment Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
create Write Cobra deprecation messages to stderr 2022-05-23 20:23:42 +02:00
diff Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
edit Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
list Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
merge Merge pull request #5514 from mntlty/pr_merge_refactor 2022-05-09 11:56:36 -07:00
ready Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
reopen Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
review Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
shared Extract feature detection package (#5494) 2022-05-17 19:07:44 +00:00
status Extract feature detection package (#5494) 2022-05-17 19:07:44 +00:00
view Replace uses of strings.Title (#5623) 2022-05-12 13:52:21 +00:00
pr.go Consistent punctuation in command usages (#5139) 2022-01-31 10:56:12 +00:00