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

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

Build:
Build:
LAST BUILD BRANCH: update-for-new-spec
DEFAULT BRANCH: master
Repo Added 11 Mar 2024 04:29PM UTC
Token hUDSXzB1yry8ppqw37qEhMsznDoBHAcUb regen
Build 77 Last
Files 2
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

LAST BUILD ON BRANCH update-for-new-spec
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • added-templates
  • dependabot-automerge
  • dependabot-fix-filter
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/checkout-7
  • dependabot/github_actions/actions/setup-go-6
  • dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.0.1
  • dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.1.1
  • dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.5.1
  • dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.5.3
  • dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.5.5
  • dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.6.1
  • dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.7.0
  • dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.7.1
  • dependabot/go_modules/github.com/rsteube/carapace-spec-0.17.0
  • dependabot/go_modules/github.com/urfave/cli/v2-2.27.2
  • dependabot/go_modules/github.com/urfave/cli/v2-2.27.3
  • dependabot/go_modules/github.com/urfave/cli/v2-2.27.4
  • dependabot/go_modules/github.com/urfave/cli/v2-2.27.5
  • dependabot/go_modules/github.com/urfave/cli/v2-2.27.7
  • master
  • refs/tags/v1.0.0
  • update-for-new-spec
  • update-package
  • updated-version

05 Jul 2026 05:44PM UTC coverage: 96.491% (+96.5%) from 0.0%
28749419582

Pull #48

github

rsteube
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

Relevant lines Covered
Build:
Build:
114 RELEVANT LINES 110 COVERED LINES
1.13 HITS PER LINE
Source Files on master
  • Tree
  • List 2
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28749419582 update-for-new-spec 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 defaul... Pull #48 05 Jul 2026 05:45PM UTC rsteube github
96.49
28715806440 update-for-new-spec 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 defaul... Pull #48 04 Jul 2026 06:35PM UTC rsteube-bot github
96.49
28470118798 master Merge pull request #47 from carapace-sh/dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.7.1 Bump github.com/carapace-sh/carapace-spec from 1.7.0 to 1.7.1 push 30 Jun 2026 07:23PM UTC web-flow github
0.0
28470109931 dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.7.1 Bump github.com/carapace-sh/carapace-spec from 1.7.0 to 1.7.1 Bumps [github.com/carapace-sh/carapace-spec](https://github.com/carapace-sh/carapace-spec) from 1.7.0 to 1.7.1. - [Release notes](https://github.com/carapace-sh/carapace-spec/releases)... Pull #47 30 Jun 2026 07:23PM UTC web-flow github
0.0
28470108101 dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.7.1 Bump github.com/carapace-sh/carapace-spec from 1.7.0 to 1.7.1 Bumps [github.com/carapace-sh/carapace-spec](https://github.com/carapace-sh/carapace-spec) from 1.7.0 to 1.7.1. - [Release notes](https://github.com/carapace-sh/carapace-spec/releases)... push 30 Jun 2026 07:22PM UTC web-flow github
0.0
27978090766 master Merge pull request #46 from carapace-sh/dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.7.0 Bump github.com/carapace-sh/carapace-spec from 1.6.1 to 1.7.0 push 22 Jun 2026 07:23PM UTC web-flow github
0.0
27978079847 dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.7.0 Bump github.com/carapace-sh/carapace-spec from 1.6.1 to 1.7.0 Bumps [github.com/carapace-sh/carapace-spec](https://github.com/carapace-sh/carapace-spec) from 1.6.1 to 1.7.0. - [Release notes](https://github.com/carapace-sh/carapace-spec/releases)... Pull #46 22 Jun 2026 07:23PM UTC web-flow github
0.0
27978077031 dependabot/go_modules/github.com/carapace-sh/carapace-spec-1.7.0 Bump github.com/carapace-sh/carapace-spec from 1.6.1 to 1.7.0 Bumps [github.com/carapace-sh/carapace-spec](https://github.com/carapace-sh/carapace-spec) from 1.6.1 to 1.7.0. - [Release notes](https://github.com/carapace-sh/carapace-spec/releases)... push 22 Jun 2026 07:23PM UTC web-flow github
0.0
27783814958 master Merge pull request #45 from carapace-sh/dependabot/github_actions/actions/checkout-7 Bump actions/checkout from 6 to 7 push 18 Jun 2026 07:23PM UTC web-flow github
0.0
27783799827 dependabot/github_actions/actions/checkout-7 Bump actions/checkout from 6 to 7 Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)... push 18 Jun 2026 07:22PM UTC web-flow github
0.0
See All Builds (66)

Badge your Repo: carapace-spec-urfavecli

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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