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

carapace-sh / carapace-spec-urfavecli / 28715806440
96%
master: 96%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.1.0
DEFAULT BRANCH: master
Ran 04 Jul 2026 06:35PM UTC
Jobs 1
Files 2
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

04 Jul 2026 06:27PM UTC coverage: 96.491% (+96.5%) from 0.0%
28715806440

Pull #48

github

rsteube-bot
Add flag default value support and fix flag key prefix

Bump carapace-spec to v1.8.0 which adds a Default field to command.Flag,
enabling extended YAML notation for flag defaults consumed by pflag's
Value.Set() at registration time. Extract defaults via
DocGenerationFlag.GetDefaultText(), unquoting %q-wrapped values from
StringFlag, PathFlag, and StringSliceFlag so pflag receives raw strings.

Also fix the Longhand/Shorthand fields to use bare names (without dash
prefixes) since carapace-spec's Flag.format() adds -- and - itself.
Setting Longhand to "--output" produced double-prefixed keys like
"----output=" in the generated YAML.

Add comprehensive test suite (14 tests, 94.5% coverage) covering default
extraction, slice defaults, shorthand, flag key format, file completion,
usage truncation, hidden command filtering, subcommand recursion, extended
YAML notation, aliases/group, and the Register action. Add AGENTS.md
documenting architecture, conventions, and gotchas.

💘 Generated with Crush

Assisted-by: Crush:glm-5.2
Pull Request #48: Add flag default value support and fix flag key prefix

26 of 28 new or added lines in 2 files covered. (92.86%)

110 of 114 relevant lines covered (96.49%)

1.13 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
93.65
93.65% flag.go
Jobs
ID Job ID Ran Files Coverage
1 28715806440.1 04 Jul 2026 06:35PM UTC 2
96.49
GitHub Action Run
Source Files on build 28715806440
  • Tree
  • List 2
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #48
  • PR Base - master (#28470118798)
  • 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