Skip to content

Breaking: Move FlagCount and Flaggable to a public flag package#177

Merged
FollowTheProcess merged 1 commit intomainfrom
feat/public-flag
Nov 8, 2025
Merged

Breaking: Move FlagCount and Flaggable to a public flag package#177
FollowTheProcess merged 1 commit intomainfrom
feat/public-flag

Conversation

@FollowTheProcess
Copy link
Owner

@FollowTheProcess FollowTheProcess commented Nov 8, 2025

Summary

First step in a re-think of how arguments and flags work, I want to make arguments similar to flags in that you define a structure and the args are parsed into type safe representations.

Adds a new public flag package for users to consume

  • cli.FlagCount -> flag.Count
  • cli.NoShortHand -> flag.NoShortHand

@FollowTheProcess FollowTheProcess added breaking Breaking Changes feature New feature or request and removed feature New feature or request labels Nov 8, 2025
@FollowTheProcess FollowTheProcess self-assigned this Nov 8, 2025
@codecov
Copy link

codecov bot commented Nov 8, 2025

Codecov Report

❌ Patch coverage is 93.54839% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.50%. Comparing base (0b31428) to head (d626533).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
internal/flag/flag.go 92.30% 1 Missing ⚠️
internal/flag/set.go 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #177   +/-   ##
=======================================
  Coverage   91.50%   91.50%           
=======================================
  Files           5        5           
  Lines        1260     1260           
=======================================
  Hits         1153     1153           
  Misses         61       61           
  Partials       46       46           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@FollowTheProcess FollowTheProcess merged commit 5c8675f into main Nov 8, 2025
12 checks passed
@FollowTheProcess FollowTheProcess deleted the feat/public-flag branch November 8, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking Breaking Changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant