Open netvl opened 6 months ago
Makes sense.
This would be a breaking change, but the breakage would be: -f
previously didn't affect output, and now does.
Is this a bug than a feature? If I look into the CliEvaluator I see that it set the expected format:
But it seems it will not be respected 🤔
Currently, evaluation of a Pkl module with multi-file output ignores the output format parameter for the
pkl eval
call (or theoutputFormat
property in case of the Gradle plugin). For example (snippet taken from the docs):This is different from the regular single-file output mode, where
-f
would determine the default renderer in case it is not explicitly specified.It would probably make sense for the
-f
argument to be honored for multi-file output as well, in the same way as for single-file output - by determining the output format in case an explicit renderer is not defined.