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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the plan command. #387

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

angrycub
Copy link
Contributor

@angrycub angrycub commented Dec 1, 2020

This is a pretty big PR, but this fixes the levant plan command to output an entire plan in "pretty" mode. Also added some CLI flags to allow the user to specify the output format and where they would like the output to go. I added a CLI mode in case we wanted to bring colors to the party.

I think the JSON -> Lines conversion could probably be made more elegant 馃拲, but for now it seems to do the right thing. Would like to add some testing for all this too, but I wanted you to start milling over what I'd done thus far.

Copy link
Contributor

@cgbaker cgbaker left a comment

Choose a reason for hiding this comment

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

looks good. minor bike-shedding on command line args, feel free to ignore me.

also, CI is apparently broken?

Specify the format of plan to be emitted. Valid values include JSON, DIFF,
and NDJSON. The default is DIFF.

-output-to
Copy link
Contributor

Choose a reason for hiding this comment

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

render has a similar config, but it uses the -out:

-out=<file>

is currently set in a running job.
is currently set in a running job.

-output-format
Copy link
Contributor

Choose a reason for hiding this comment

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

-output-format is perhaps redundant? maybe just -format?

update: i see that this is drawing a distinction against -log-format... 馃

Base automatically changed from master to main March 3, 2021 19:50
@hashicorp-cla
Copy link

hashicorp-cla commented Mar 12, 2022

CLA assistant check
All committers have signed the CLA.

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.

None yet

3 participants