Support evaluating just an expression
Open
- Dominant language
- Java
- Stars
- 11.5k
- Forks
- 402
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 20
Description
Occasionally it can be useful to evaluate just an expression.
Currently, `pkl eval -x` requires to also specify a module.
A cross-platform workaround is `pkl eval pkl:base -x`.
However, it would be nice if `pkl eval -x` just worked.
Contributor guide
Research direction
Start at the command handling for `pkl eval -x`, which currently requires a module and uses `pkl:base` as a workaround. Check how the CLI parses the expression and module arguments, then verify that an expression-only invocation works without breaking module-based evaluation.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100