From
https://github.com/spf13/cobra/releases/tag/v1.9.1
๐ Fixes
Fix CompletionFunc implementation by @ccoVeille in #2234
Revert "Make detection for test-binary more universal (#2173)" by @marckhouzam in #2235
Full Changelog: v1.9.0...v1.9.1
https://github.com/spf13/cobra/releases/tag/v1.9.0
โจ 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
Needed for upgrading skopeo.