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

dcdpr / jp / 25387974517
66%

Build:
DEFAULT BRANCH: main
Ran 05 May 2026 04:14PM UTC
Jobs 1
Files 296
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

05 May 2026 04:10PM UTC coverage: 64.43% (+0.02%) from 64.412%
25387974517

push

github

web-flow
fix(tool, inquire): Split question preamble from prompt text (#595)

Multi-line `Question::text` values caused garbled terminal output when
rendered through `inquire`'s `InlineSelect`. The underlying primitive
tracks line counts for terminal redraws assuming a single-line message,
so embedding a diff or patch directly in `text` caused it to under-count
lines and leave stray content on screen.

The fix introduces a dedicated `pre_amble` field on `Question` for
multi-line content that should appear before the prompt. The `text`
field is now documented to be a single line. `InlineSelect` and
`ToolPrompter` both emit the preamble independently before handing the
single-line `text` to inquire.

To make this constraint easier to enforce and the construction less
error-prone, `Question` gains a builder-style API — `Question::text()`,
`Question::boolean()`, and `Question::select()` constructors paired with
`with_preamble()`, `with_default()`, `with_options()`, and
`with_option()` combinators. The struct is also marked
`#[non_exhaustive]` to prevent callers from constructing it with struct
literals, which would bypass the single-line `text` invariant.

All existing call-sites in the project tools and test code have been
updated to use the new API.

---------

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

71 of 109 new or added lines in 8 files covered. (65.14%)

5 existing lines in 4 files now uncovered.

24613 of 38201 relevant lines covered (64.43%)

216.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
12
78.35
-2.08% crates/jp_tool/src/lib.rs
10
0.0
0.0% .config/jp/tools/src/fs/move_file.rs
5
73.33
1.2% .config/jp/tools/src/fs/create_file.rs
5
0.0
0.0% .config/jp/tools/src/fs/delete_file.rs
4
37.31
2.83% crates/jp_inquire/src/inline_select.rs
1
76.92
-0.16% .config/jp/tools/src/fs/modify_file.rs
1
86.69
-0.17% crates/jp_cli/src/cmd/query/tool/prompter.rs

Coverage Regressions

Lines Coverage ∆ File
2
0.0
0.0% .config/jp/tools/src/fs/move_file.rs
1
73.33
1.2% .config/jp/tools/src/fs/create_file.rs
1
0.0
0.0% .config/jp/tools/src/fs/delete_file.rs
1
37.31
2.83% crates/jp_inquire/src/inline_select.rs
Jobs
ID Job ID Ran Files Coverage
1 25387974517.1 05 May 2026 04:14PM UTC 296
64.43
GitHub Action Run
Source Files on build 25387974517
  • Tree
  • List 296
  • Changed 8
  • Source Changed 8
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25387974517
  • 8e7918d2 on github
  • Prev Build on main (#25260030712)
  • Next Build on main (#25388444742)
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