cli/pkg/cmd
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
..
actions gh: list help topics in help output 2022-02-18 18:39:30 +01:00
alias Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
api Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
auth Add ability to set title for ssh key in auth login (#5524) 2022-05-23 08:06:42 +00:00
browse Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
codespace dont need assignment 2022-05-17 13:36:15 +00:00
completion Write Cobra deprecation messages to stderr 2022-05-23 20:23:42 +02:00
config Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
extension Allow passing full extension name (#5464) 2022-05-18 08:35:47 +02:00
factory Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
gist Write Cobra deprecation messages to stderr 2022-05-23 20:23:42 +02:00
gpg-key Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
issue pr create: ensure clear error when --body is missing in nonTTY mode 2022-05-18 19:13:59 +02:00
label Fix label clone to pass orderBy (#5675) 2022-05-23 08:32:11 +02:00
pr Write Cobra deprecation messages to stderr 2022-05-23 20:23:42 +02:00
release Add exclude-drafts flag to gh release list 2022-05-09 20:47:39 +00:00
repo Write Cobra deprecation messages to stderr 2022-05-23 20:23:42 +02:00
root Write Cobra deprecation messages to stderr 2022-05-23 20:23:42 +02:00
run Add --pattern field to run download (#5539) 2022-05-23 08:57:57 +00:00
search Fix whitespace in search prs examples (#5650) 2022-05-16 10:35:27 +02:00
secret Support and favor delete for secrets (#5617) 2022-05-16 12:24:05 +00:00
ssh-key Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
status Ensure stable presentation of FORBIDDEN errors 2022-05-10 16:07:57 +02:00
version Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00
workflow Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00