cli/pkg/cmd/pr/create
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
..
fixtures/repoWithNonLegacyPRTemplates/.github/PULL_REQUEST_TEMPLATE Fix failing tests for Windows (due to line-ending issues) 2020-09-02 10:03:56 +05:30
create.go pr create: ensure clear error when --body is missing in nonTTY mode 2022-05-18 19:13:59 +02:00
create_test.go Write Cobra deprecation messages to stderr 2022-05-23 20:23:42 +02:00
regexp_writer.go Refactor regexp writer 2020-11-03 09:59:40 +03:00
regexp_writer_test.go spelling: beginning 2020-11-21 21:43:46 -05:00