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

strongo / selfupdate / 31323589219
100%

Build:
DEFAULT BRANCH: main
Ran 09 Aug 2026 04:22PM UTC
Jobs 1
Files 13
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

09 Aug 2026 04:21PM UTC coverage: 100.0%. Remained the same
31323589219

push

github

trakhimenok
refactor: extract cobracmd's framework-neutral logic into a cliui subpackage

chatwright/cli is a hand-rolled CLI with no Cobra dependency, and today the
confirmation prompt, non-interactive refusal, and text/JSON output writers
only exist inside cobracmd — unusable without Cobra, and including two
subtle bugs already fixed here (a character device is not a terminal; an
empty read is a refusal, not a decline). Reusing this module from a
non-Cobra CLI meant reimplementing exactly the logic it exists to
centralize.

Move that logic into github.com/strongo/selfupdate/cliui (Confirm,
IsTerminal, WriteOutcome[JSON], WriteCheck[JSON], WriteNextStep,
WriteAmbiguousGuidance), which imports neither Cobra nor any other command
framework, and refactor cobracmd to call it — cobracmd is now only the
Cobra flag/wiring layer, with one implementation shared by both. No
behavior change: cobracmd's existing tests pass unmodified except the three
that tested the terminal-check seam directly, which moved to cliui along
with the code they exercise. Both packages hold 100% statement coverage.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NAqtxttokm9JbkYSxmFw8R

85 of 85 new or added lines in 3 files covered. (100.0%)

919 of 919 relevant lines covered (100.0%)

1.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 31323589219.1 09 Aug 2026 04:22PM UTC 13
100.0
GitHub Action Run
Source Files on build 31323589219
  • Tree
  • List 13
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 31728f3d on github
  • Prev Build on main (#31305639375)
  • Next Build on main (#31324256913)
  • 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