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

dblock / excalc-rs / 36085166751
98%

Build:
DEFAULT BRANCH: master
Ran 25 Sep 2026 02:11AM UTC
Jobs 3
Files 22
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

25 Sep 2026 02:10AM UTC coverage: 98.278% (-0.4%) from 98.718%
36085166751

push

github

dblock
Add interactive REPL mode

Running `excalc`/`calc` with no expression while stdin is a terminal now
starts an interactive read-eval-print loop instead of just printing usage:

- Variables assigned with `name := expr` persist across lines for the
  rest of the session (via a shared eval::Context, exposed as
  evaluate_value_with_context).
- Line editing and in-session history via rustyline.
- Built-in commands: `help` (usage), `about` (version/author/license),
  `vars` (list currently assigned variables), `exit`/`quit`/Ctrl-D (leave).
- The REPL core (`process_line`/`LineOutcome` in src/repl.rs) is a pure,
  TTY-free function with its own unit tests; `run()` wraps it with the
  actual rustyline-driven I/O loop.

Also:
- Added `default-run = "excalc"` to Cargo.toml so `cargo run -- "expr"`
  works again now that the crate has multiple `[[bin]]` targets (this was
  already broken before the REPL work; fixed since it's a natural
  companion to actually running the binary during development).
- Updated README.md, port/DESIGN.md, and CHANGELOG.md to document the REPL.
- Updated OTHERS.md's comparison against other CLI calculators: excalc-rs
  no longer lacks a REPL, though it still doesn't have tab completion or
  history persisted across restarts like Numbat/Insect/Qalculate!.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

89 of 114 new or added lines in 4 files covered. (78.07%)

5250 of 5342 relevant lines covered (98.28%)

154952.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
20
80.0
src/repl.rs
5
80.65
-15.19% src/main.rs
Jobs
ID Job ID Ran Files Coverage
1 ubuntu-latest - 36085166751.1 25 Sep 2026 02:11AM UTC 22
98.09
GitHub Action Run
2 windows-latest - 36085166751.2 25 Sep 2026 02:13AM UTC 22
97.88
GitHub Action Run
3 macos-latest - 36085166751.3 25 Sep 2026 02:11AM UTC 22
98.09
GitHub Action Run
Source Files on build 36085166751
  • Tree
  • List 22
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36085166751
  • 411f0876 on github
  • Prev Build on master (#36084460442)
  • Next Build on master (#36085591822)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc