Improve interaction between `-x` and `-f` eval flags
Open
- Dominant language
- Java
- Stars
- 11.5k
- Forks
- 402
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 20
Description
When using eval's `-x` option, the `--format` option appears to be ignored.
Evaluating the following
```shell
pkl eval --format=json -x y - <Details
```pkl
x { 1; 2; 3 }
y { "a"; "b"; "c" }
output {
renderer = new JsonRenderer {}
value = y
}
```
Contributor guide
Research direction
Start with the eval command handling for the -x and --format options, using the supplied shell reproduction to observe which output path is selected. Compare the current result with the expected JSON array and verify that the fixed-format workaround remains unaffected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100