• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dcdpr / jp / 24383308914
67%

Build:
DEFAULT BRANCH: main
Ran 14 Apr 2026 05:56AM UTC
Jobs 1
Files 268
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Apr 2026 05:52AM UTC coverage: 65.343% (+0.01%) from 65.329%
24383308914

push

github

web-flow
feat(cli, config): Accept JSON objects as `--cfg` values (#550)

The `--cfg` flag previously only accepted `key=value` pairs or file
paths. It now also accepts a JSON object literal, allowing users to pass
structured config overrides in a single argument.

For example:

    jp query --cfg '{"assistant": {"name": "dev"}}' "Hello"

is now equivalent to:

    jp query --cfg assistant.name=dev "Hello"

Internally, a JSON object is detected by a leading `{` and parsed via
`serde_json`. The resulting value is wrapped in a `KvAssignment` with an
empty key path (`root_json`). When `PartialAppConfig::assign` encounters
an empty key, it delegates to `try_merge_object`, which iterates the
object's top-level keys and assigns each individually. JSON and
key-value overrides can be freely mixed; later entries win.

Signed-off-by: Jean Mertz <git@jeanmertz.com>

19 of 22 new or added lines in 3 files covered. (86.36%)

21682 of 33182 relevant lines covered (65.34%)

338.93 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
3.72
1.81% crates/jp_cli/src/lib.rs
Jobs
ID Job ID Ran Files Coverage
1 24383308914.1 14 Apr 2026 05:56AM UTC 268
65.34
GitHub Action Run
Source Files on build 24383308914
  • Tree
  • List 268
  • Changed 4
  • Source Changed 4
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24383308914
  • 52156988 on github
  • Prev Build on main (#24366146360)
  • Next Build on main (#24386672845)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc