Skip to content

Conversation

@FollowTheProcess
Copy link
Owner

  • Provide a way of iterating over all flags
  • Move flag usage block writing into command.go
  • Command now uses the new usage mechanism

Summary

@FollowTheProcess FollowTheProcess added the refactoring Refactoring label Nov 13, 2025
@codecov
Copy link

codecov bot commented Nov 13, 2025

Codecov Report

❌ Patch coverage is 86.95652% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.13%. Comparing base (76e9cea) to head (e41756a).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
command.go 87.87% 2 Missing and 2 partials ⚠️
internal/flag/set.go 77.77% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #188      +/-   ##
==========================================
- Coverage   87.74%   85.13%   -2.61%     
==========================================
  Files           8        8              
  Lines        1501     1507       +6     
==========================================
- Hits         1317     1283      -34     
- Misses        122      162      +40     
  Partials       62       62              

☔ 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 1c12a62 into main Nov 13, 2025
10 of 12 checks passed
@FollowTheProcess FollowTheProcess deleted the refactor/move-flag-usage branch November 13, 2025 07:52
FollowTheProcess added a commit that referenced this pull request Dec 3, 2025
* Provide a way of iterating over all flags

* Move flag usage block writing into command.go

* Command now uses the new usage mechanism

* Add Default into a few tests

* Add a test for the help bool special case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants