Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version (-v) output should go to stdout #1455

Merged
merged 1 commit into from
Feb 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
## Upcoming

## v0.25.2 (Feb ??, 2021)

BREAKING CHANGES:

* version output from -v/-version should go to STDOUT (not STDERR)[[GH-1452](https://github.com/hashicorp/consul-template/issues/1452)]


## v0.25.1 (Jul 27, 2020)

IMPROVEMENTS:
Expand Down
2 changes: 1 addition & 1 deletion cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (cli *CLI) Run(args []string) int {
// print their version on stderr anyway.
if isVersion {
log.Printf("[DEBUG] (cli) version flag was given, exiting now")
fmt.Fprintf(cli.errStream, "%s\n", version.HumanVersion)
fmt.Fprintf(cli.outStream, "%s\n", version.HumanVersion)
return ExitCodeOK
}

Expand Down