Skip to content

Feature/better did you mean#131

Merged
napalu merged 3 commits into
mainfrom
feature/better_did_you_mean
Apr 1, 2026
Merged

Feature/better did you mean#131
napalu merged 3 commits into
mainfrom
feature/better_did_you_mean

Conversation

@napalu
Copy link
Copy Markdown
Owner

@napalu napalu commented Apr 1, 2026

No description provided.

napalu added 3 commits April 1, 2026 16:23
…mands

- Refactor argument handling to support "greedy" commands that capture unbound positionals.
- Improve positional and flag parsing logic to ensure robustness.
- Deprecate `HelpStyleGroupedClean` in favor of `HelpStyleGrouped` with clean formatting as default.
- Update internationalization (i18n) messages for improved validation feedback and consistency across locales.
- Improve description alignment and formatting in help outputs.
- Add utility functions for building command/subcommand names with positionals.
- Update tests to reflect new command and help output behavior.
- make "did you mean" context-aware to prevent suggestions on positionals
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 1, 2026

Codecov Report

❌ Patch coverage is 63.04348% with 68 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.53%. Comparing base (b3a05c4) to head (cf986f7).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
v2/goopt_internal.go 68.86% 30 Missing and 3 partials ⚠️
v2/validation/parser.go 41.17% 10 Missing ⚠️
v2/goopt_internal_positionals.go 0.00% 7 Missing and 1 partial ⚠️
v2/internal/parse/tag.go 0.00% 5 Missing ⚠️
v2/renderer.go 0.00% 4 Missing ⚠️
v2/command_config_funcs.go 0.00% 3 Missing ⚠️
v2/goopt.go 66.66% 2 Missing and 1 partial ⚠️
v2/help_parser.go 90.90% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #131      +/-   ##
==========================================
- Coverage   79.61%   79.53%   -0.08%     
==========================================
  Files          88       88              
  Lines       13247    13339      +92     
==========================================
+ Hits        10546    10609      +63     
- Misses       1978     2004      +26     
- Partials      723      726       +3     
Flag Coverage Δ
v1 74.74% <ø> (ø)
v2 82.15% <63.04%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
v2/internal/util/strings.go 100.00% <100.00%> (ø)
v2/types/common.go 88.88% <ø> (ø)
v2/help_parser.go 74.19% <90.90%> (+0.61%) ⬆️
v2/command_config_funcs.go 89.79% <0.00%> (-5.86%) ⬇️
v2/goopt.go 87.39% <66.66%> (-0.07%) ⬇️
v2/renderer.go 78.57% <0.00%> (-2.32%) ⬇️
v2/internal/parse/tag.go 70.89% <0.00%> (-2.75%) ⬇️
v2/goopt_internal_positionals.go 93.45% <0.00%> (-3.63%) ⬇️
v2/validation/parser.go 61.15% <41.17%> (-1.31%) ⬇️
v2/goopt_internal.go 75.07% <68.86%> (+0.50%) ⬆️
Files with missing lines Coverage Δ
v2/internal/util/strings.go 100.00% <100.00%> (ø)
v2/types/common.go 88.88% <ø> (ø)
v2/help_parser.go 74.19% <90.90%> (+0.61%) ⬆️
v2/command_config_funcs.go 89.79% <0.00%> (-5.86%) ⬇️
v2/goopt.go 87.39% <66.66%> (-0.07%) ⬇️
v2/renderer.go 78.57% <0.00%> (-2.32%) ⬇️
v2/internal/parse/tag.go 70.89% <0.00%> (-2.75%) ⬇️
v2/goopt_internal_positionals.go 93.45% <0.00%> (-3.63%) ⬇️
v2/validation/parser.go 61.15% <41.17%> (-1.31%) ⬇️
v2/goopt_internal.go 75.07% <68.86%> (+0.50%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@napalu napalu merged commit 91c2ea3 into main Apr 1, 2026
12 of 13 checks passed
@napalu napalu deleted the feature/better_did_you_mean branch April 2, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant