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

terraform version -json #25252

Merged
merged 3 commits into from
Jun 16, 2020
Merged

terraform version -json #25252

merged 3 commits into from
Jun 16, 2020

Conversation

kmoe
Copy link
Member

@kmoe kmoe commented Jun 15, 2020

This PR adds a -json flag for the terraform version command, whose output is otherwise intended for human consumption.

Typical output looks like this:
tfversionjson

Tests have been added for terraform version (which had none before) and terraform version -json.

@codecov
Copy link

codecov bot commented Jun 15, 2020

Codecov Report

Merging #25252 into master will increase coverage by 0.04%.
The diff coverage is 68.29%.

Impacted Files Coverage Δ
command/version.go 58.57% <68.29%> (+58.57%) ⬆️
terraform/node_resource_plan.go 93.44% <0.00%> (+1.63%) ⬆️

@kmoe kmoe marked this pull request as ready for review June 15, 2020 18:58
@kmoe kmoe requested a review from a team June 15, 2020 18:58
Copy link
Contributor

@mildwonkey mildwonkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lovely!

Copy link
Contributor

@alisdair alisdair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks!

@ghost
Copy link

ghost commented Jul 17, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Jul 17, 2020
@pselle pselle deleted the terraform-version-json branch March 4, 2021 20:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants