cli/pkg/cmd/gist
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
..
clone Write Cobra deprecation messages to stderr 2022-05-23 20:23:42 +02:00
create Add progress indicator to gist create (#5526) 2022-04-27 08:17:17 +00:00
delete Avoid crash when deleting gist with no owner 2022-04-25 13:24:19 +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
shared Repace shurcool/graphql with cli/shurcool-graphql 2021-11-17 12:57:43 -08:00
view Replace ioutil with io and os (#5498) 2022-04-26 13:07:44 +02:00
gist.go Rename the module to "github.com/cli/cli/v2" 2021-08-25 12:41:30 +02:00