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

Force format of output #330

Open
squaremo opened this issue Mar 15, 2020 · 1 comment
Open

Force format of output #330

squaremo opened this issue Mar 15, 2020 · 1 comment

Comments

@squaremo
Copy link
Member

jk transform and jk generate both have a --stdout argument, which will print all the objects to stdout. But this balks if the objects have different formats (either because the generation function gave them different formats, or because transform read them from files with different formats).

For the purpose eyeballing the results, it'd be good to be able to just force the format of everything to either YAML or JSON (these are the formats with a stream variation). In fact, this might be useful even when writing to files (and should change the extension!).

@squaremo
Copy link
Member Author

This may be worth a modest RFC. Other things to cover:

  • specifying input formats for files that don't have an extension
  • ?

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

No branches or pull requests

1 participant