Skip to content

fix: make version subcommand output match --version#85

Merged
liamcervante merged 1 commit intomainfrom
fix/consistent-version-output
May 8, 2026
Merged

fix: make version subcommand output match --version#85
liamcervante merged 1 commit intomainfrom
fix/consistent-version-output

Conversation

@liamcervante
Copy link
Copy Markdown
Collaborator

Summary

infracost version printed the bare version string (e.g. dev), while infracost --version printed infracost version dev via cobra's default template. Align the subcommand to match so both produce the same output.

Before:

$ infracost version
dev
$ infracost --version
infracost version dev

After:

$ infracost version
infracost version dev
$ infracost --version
infracost version dev

The `infracost version` subcommand printed just the bare version string
(e.g. `dev`), while `infracost --version` printed `infracost version dev`
via cobra's default template. Align the subcommand to match.
@liamcervante liamcervante requested a review from a team May 6, 2026 15:21
@liamcervante liamcervante merged commit 7f27811 into main May 8, 2026
5 checks passed
@liamcervante liamcervante deleted the fix/consistent-version-output branch May 8, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants