-
Notifications
You must be signed in to change notification settings - Fork 125
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
Update the plan
command.
#387
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
:
Line 50 in 19af3df
-out=<file> |
is currently set in a running job. | ||
is currently set in a running job. | ||
|
||
-output-format |
There was a problem hiding this comment.
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
... 🤔
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.