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

Make cli options 'json' and 'no-color' global options #33719

Open
AdamCoulterOz opened this issue Aug 22, 2023 · 2 comments
Open

Make cli options 'json' and 'no-color' global options #33719

AdamCoulterOz opened this issue Aug 22, 2023 · 2 comments
Labels
enhancement new new issue not yet triaged

Comments

@AdamCoulterOz
Copy link

Terraform Version

Terraform v1.5.5
on darwin_arm64

Use Cases

Working with the cli programmatically, some commands accept these options, others don't, and it seems somewhat arbitrary.

Attempted Solutions

Mapping to every command individually, but have to maintain if each command supports it or not.

Proposal

Make the terraform cli options 'json' and 'no-color' global options (i.e. before the subcommand).

References

No response

@AdamCoulterOz AdamCoulterOz added enhancement new new issue not yet triaged labels Aug 22, 2023
@crw
Copy link
Contributor

crw commented Aug 23, 2023

Thanks for this request! It appears to be a duplicate of #23708. If you agree, I will close this issue. Please let me know! Thanks.

@crw crw added the waiting-response An issue/pull request is waiting for a response from the community label Aug 24, 2023
@AdamCoulterOz
Copy link
Author

@crw - yes for no-color, but for a different reason, but #23708 doesn't include a global json option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new new issue not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants