Rationale
- Kingpin’s autocompletion support is limited and difficult to extend.
- Cobra provides robust, built-in support for Bash, Zsh, Fish, and PowerShell completions.
- Cobra is more actively maintained and widely adopted (used by tools like
kubectl, helm, gh, etc.), aligning us with modern CLI standards.
Benefits
- Greatly improved shell autocompletion (dynamic flags and subcommands)
- Clearer subcommand structure and help text
- Easier long-term maintenance and community contribution
Kingpin has served well, but its autocompletion model has become a bottleneck for usability.
This migration modernizes the CLI foundation and should make future enhancements simpler and more reliable.