✨ Features
- Allow linker to perform deadcode elimination for program using Cobra by @aarzilli in #1956
- Add default completion command even if there are no other sub-commands by @marckhouzam in #1559
- Add CompletionWithDesc helper by @ccoVeille in #2231
🐛 Fixes
- Fix deprecation comment for Command.SetOutput by @thaJeztah in #2172
- Replace deprecated ioutil usage by @nirs in #2181
- Fix --version help and output for plugins by @nirs in #2180
- Allow to reset the templates to the default by @marckhouzam in #2229
🤖 Completions
- Make Powershell completion work in constrained mode by @lstemplinger in #2196
- Improve detection for flags that accept multiple values by @thaJeztah in #2210
- add CompletionFunc type to help with completions by @ccoVeille in #2220
- Add similar whitespace escape logic to bash v2 completions than in other completions by @kangasta in #1743
- Print ActiveHelp for bash along other completions by @marckhouzam in #2076
- fix(completions): Complete map flags multiple times by @gabe565 in #2174
- fix(bash): nounset unbound file filter variable on empty extension by @scop in #2228
🧪 Testing
- Test also with go 1.23 by @nirs in #2182
- Make detection for test-binary more universal by @thaJeztah in #2173
✍🏼 Documentation
- docs: update README.md by @eltociear in #2197
- Improve site formatting by @nirs in #2183
- doc: add Conduit by @raulb in #2230
- doc: azion project added to the list of CLIs that use cobra by @maxwelbm in #2198
- Fix broken links in active_help.md by @vuil in #2202
- chore: fix function name in comment by @zhuhaicity in #2216
🔧 Dependency upgrades
- build(deps): bump github.com/cpuguy83/go-md2man/v2 from 2.0.5 to 2.0.6 by @thaJeztah in #2206
- Update to latest go-md2man by @mikelolasagasti in #2201
- Upgrade
pflag
dependencies for v1.9.0 by @jpmcb in #2233
Thank you to all of our amazing contributors and all the great work that's been going into the completions feature!!
👋🏼 New Contributors
- @gabe565 made their first contribution in #2174
- @maxwelbm made their first contribution in #2198
- @lstemplinger made their first contribution in #2196
- @vuil made their first contribution in #2202
- @mikelolasagasti made their first contribution in #2201
- @zhuhaicity made their first contribution in #2216
- @ccoVeille made their first contribution in #2220
- @kangasta made their first contribution in #1743
- @aarzilli made their first contribution in #1956
Full Changelog: v1.8.1...v1.9.0