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

Use machine readable output for plan and apply #9

Open
leg100 opened this issue Mar 14, 2024 · 5 comments
Open

Use machine readable output for plan and apply #9

leg100 opened this issue Mar 14, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@leg100
Copy link
Owner

leg100 commented Mar 14, 2024

Internally use machine readable output from plan and apply, converting into human readable output while streaming. Parse former output to extract metadata.

@leg100 leg100 added the enhancement New feature or request label Mar 14, 2024
@leg100
Copy link
Owner Author

leg100 commented Mar 15, 2024

Tried this. The machine readable output is not as verbose, and leaves out context info, e.g. the attributes that make up a resource are not shown unlike with the human readable output.

Need to decide whether users would be put off by this before implementing.

@davidjeddy
Copy link

Would you consider multiple levels of verbosity? I have found that developers like to see more output in there pipelines where as production pipelines do not need so much. -verbose={LEVEL} following the Linux output levels would be amazing.

@leg100
Copy link
Owner Author

leg100 commented May 13, 2024

@davidjeddy I'm not sure what you're proposing. Terraform already supports a TF_LOG={LEVEL} environment variable to set log verbosity. In terms of this issue, machine readable output is mutually exclusive with human readable output, you can't have both:

https://developer.hashicorp.com/terraform/internals/machine-readable-ui

@davidjeddy
Copy link

was hoping the output of PUG itself could have levels. While TF TF_LOG was thinking PUG could have PUB_LOG for output of PUG specific runtime messages.

@leg100
Copy link
Owner Author

leg100 commented May 20, 2024

Pug has logging and levels already. Press l in the TUI. Change log level using the flag -l debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants