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

jhheider / penknife / 28775738666
76%

Build:
DEFAULT BRANCH: main
Ran 06 Jul 2026 07:41AM UTC
Jobs 1
Files 32
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

06 Jul 2026 07:40AM UTC coverage: 39.847% (-0.4%) from 40.249%
28775738666

push

github

jhheider
Headless CLI part 2: push, url, and status (the gist trio)

Completes the v0.2.0 headless CLI with the three GitHub-backed
verbs, so publishing and drift-checking are scriptable and
editor-bindable without opening the TUI.

- `push <file> [--force]`: publish or update the file's gist and
  print only the URL on stdout (progress on stderr, so
  `url=$(penknife push f.md)` captures clean). Honors the
  lost-update guard: a diverged remote refuses with exit 1 and
  points at --force.
- `url <file> [--clip] [--push] [--open]`: print the shareable URL.
  Already-published and no --push means the stored URL, offline and
  tokenless (it just notes if the local copy is newer). --clip
  copies (opt-in, so a scripted capture never clobbers the
  clipboard), --push updates first, --open launches the browser.
  Both side effects are non-fatal.
- `status [path] [--sync]`: per-file drift, offline by default (the
  local record, instant, safe in a prompt or pre-commit hook), with
  --sync for a live GitHub check. --porcelain gives stable
  `<code>\t<path>` lines; --json is structured; exit 1 when
  anything has drifted.

A path resolver maps a raw CLI file path to its (root, rel) store
key, erroring with the watched-folder list when a file is under no
root. Errors guide: the no-token and missing-gist-scope cases print
the exact `gh auth` command to run. Exit codes are the promised
API: 3 auth, 4 no-root, 5 operational.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

71 of 269 new or added lines in 2 files covered. (26.39%)

3016 of 7569 relevant lines covered (39.85%)

2.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
197
26.33
0.55% crates/penknife/src/cli.rs
1
0.0
0.0% crates/penknife/src/main.rs
Jobs
ID Job ID Ran Files Coverage
1 28775738666.1 06 Jul 2026 07:41AM UTC 32
39.85
GitHub Action Run
Source Files on build 28775738666
  • Tree
  • List 32
  • Changed 3
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28775738666
  • 044b950b on github
  • Prev Build on main (#28775337870)
  • Next Build on main (#28777101593)
  • Delete
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