apple / apple/pkl

Support evaluating just an expression

Open
#711 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.