New
v1.6.0
🎉 First release since May 2022 thanks to AI! 🎉
Disruptive Changes:
- Slice flags no longer automatically parse slice values with commas into multiple values. To specify multiple values, use the flag multiple times. For example, this will produce one value:
./app -f one,two,threeand./ -f one -f two -f threewill produce three values in the slice. #90
New Features:
- Adds built-in bash and zsh completion generators. Use
completion zshorcompletion bashon your app. This is on my default. To disable, useflaggy.DisableCompletion(). #1 - Flags can now be sorted alphabetically or reverse alphabetically using
SortFlagsByLongName()andSortFlagsByLongNameReversed()#69 - Added a Github Action for test validation
- Added support for all types in the go standard library! • []net.IPMask • time.Time • url.URL • net.IPNet • net.TCPAddr • net.UDPAddr • os.FileMode • regexp.Regexp • time.Location • time.Month • time.Weekday • big.Int • big.Rat • netip.Addr • netip.Prefix • netip.AddrPort • Base64Bytes ([]byte)
Fixes
- Fixed #84 - Unknown arguments supplied when the flag and subcommand have the same value name
Full Changelog: https://github.com/integrii/flaggy/compare/v1.5.2...v1.6.0