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

dcdpr / jp / 26170657135
66%

Build:
DEFAULT BRANCH: main
Ran 20 May 2026 02:57PM UTC
Jobs 1
Files 371
Run time 2min
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

20 May 2026 02:53PM UTC coverage: 65.284% (+0.004%) from 65.28%
26170657135

push

github

web-flow
refactor(config): introduce `CommandConfig` and `shlex`-based parsing (#664)

Extract a generic `CommandConfig` / `CommandConfigOrString` type under
`jp_config::types::command`, replacing the tool-scoped
`ToolCommandConfig`. The new type lives at the config-types layer so it
can be shared by tools, labels, and any other consumer that needs to
model an external command.

String shorthands now use shell-word semantics via `shlex` instead of
`split_ascii_whitespace`. This means quoting is respected at
config-parse time, so `command = "nvim -c 'set ft=md'"` correctly passes
two arguments (`-c` and `set ft=md`) rather than three. Inputs with
unbalanced quotes are rejected at parse time rather than producing
garbage at spawn time.

The same `shlex`-based splitting is applied to `EditorConfig::command`
and `EditorConfig::path` when reading editor env-vars (`JP_EDITOR`,
`VISUAL`, `EDITOR`). Previously only the first whitespace-separated
token was used; now `JP_EDITOR="code --wait"` correctly invokes `code`
with `--wait` as an argument. Env-var values with unbalanced quoting are
skipped and the next variable in the list is tried instead.

---------

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

31 of 91 new or added lines in 5 files covered. (34.07%)

30166 of 46207 relevant lines covered (65.28%)

249.37 hits per line

Uncovered Changes

Lines Coverage ∆ File
50
34.21
crates/jp_config/src/types/command.rs
9
80.0
3.21% crates/jp_config/src/editor.rs
1
58.84
3.1% crates/jp_config/src/conversation/tool.rs
Jobs
ID Job ID Ran Files Coverage
1 26170657135.1 20 May 2026 02:57PM UTC 371
65.28
GitHub Action Run
Source Files on build 26170657135
  • Tree
  • List 371
  • Changed 4
  • Source Changed 4
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26170657135
  • 2b92a887 on github
  • Prev Build on main (#26126259533)
  • Next Build on main (#26241895253)
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