Skip to content

v1.0.0 - #12

Merged
joseluisq merged 2 commits into
masterfrom
v100
Jan 3, 2026
Merged

joseluisq merged 2 commits into
masterfrom
v100

Conversation

@joseluisq

@joseluisq joseluisq commented Dec 30, 2025 •

Copy link
Copy Markdown
Owner

This PR introduces the first major version 1.0.0.

Changelog

Breaking change

Although changes are expected to be minor, existing code needs to be updated.

  • Golang 1.23 is required as a minimum.
  • API is changed.
    • App type is decoupled from the Handler logic, resulting in a new Handler type.
    • Some structs are renamed like Flag types, Flag values, Cmds and helpers.

Refactorings

  • Restructured modules (files and directories).
  • Improved Tests and code coverage CI, as well as refactored a few APIs. The library requires Golang 1.23 or later.

Improvements

  • Strict UTF-8 for arguments and alphanumeric ASCII for flags and commands.
  • POSIX-compliant support is partially supported (see the limitations).
  • Support for flags termination via -- to provide further positional arguments (tail args).
  • Same repeated flag arguments use the last value provided.
  • Option to restrict the maximum argument length and the maximum number of arguments provided.

Fixes

  • Inconsistent use of aliases for special version and help) flags like --v or --h.

For the usage of the new API, please check out the examples to adjust existing apps accordingly.
the ./examples directory.

For more details, see the v1.0.0 milestone and the full changelog v0.1.0...v1.0.0.

@joseluisq joseluisq self-assigned this Dec 30, 2025
@joseluisq joseluisq added enhancement New feature or request breaking-change labels Dec 30, 2025
@semanticdiff-com

semanticdiff-com Bot commented Dec 30, 2025 •

Copy link
Copy Markdown

Review changes with  SemanticDiff

Changed Files
File Status
  handler/handler.go  13% smaller
  README.md Unsupported file format
  app/app.go  0% smaller
  app/app_context.go  0% smaller
  handler/handler_test.go  0% smaller

@codecov

codecov Bot commented Jan 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.45%. Comparing base (5a2012d) to head (aff545a).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   98.41%   98.45%   +0.03%     
==========================================
  Files           8        8              
  Lines         819      840      +21     
==========================================
+ Hits          806      827      +21     
  Misses         11       11              
  Partials        2        2              
Flag Coverage Δ
unittests 98.45% <100.00%> (+0.03%) ⬆️

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

☔ 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.

@joseluisq joseluisq added this to the v1.0.0 milestone Jan 3, 2026
@joseluisq
joseluisq marked this pull request as ready for review January 3, 2026 11:47
@joseluisq
joseluisq merged commit a065fa9 into master Jan 3, 2026
17 checks passed
@joseluisq
joseluisq deleted the v100 branch January 3, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant