You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrate to cli framework for proper completion support #576
Hi @shyim, thank you very much for raising this suggestion, and thanks @philippgille for sharing those framework references — shell completion would indeed be a great usability improvement, and we agree it's worth pursuing.
To give some context, the current CLI layer relies on a custom command-parsing implementation built in-house. Migrating to a framework — whether Cobra, urfave/cli, or kingpin — would touch nearly every command and argument definition, making the scope of the change fairly large. We want to plan this carefully to avoid regressions and to avoid breaking existing usage patterns and user scripts.
As for next steps, our core maintainer team is currently working on the architecture design for this area, evaluating how well each framework fits and what impact it would have on the existing structure. We plan to finalize the architecture in the near future, and we'd love to have the community join us in completing the final implementation at that point.
Thanks again for your patience and the valuable suggestion — we'll keep this issue updated with progress 🙏
This has been shipped in v1.8.3! We migrated the CLI to the Cobra framework, so shell completion (Bash, Zsh, Fish, PowerShell) is now available via:
ocr completion <shell>
Thanks for the suggestion and the framework references — they were very helpful in guiding the decision. Give it a try and let us know if anything feels off.
Activity
philippgille commentedon Jul 29, 2026
Doesn't have to be Cobra - other popular CLI libraries offer that as well:
[-]Migrate to cobra for proper completion support[/-][+]Migrate to cli framework for proper completion support[/+]shyim commentedon Jul 29, 2026
Updated the issue. I don't care tbh which framework. Just shell completion would be nice 😂 and maybe some kind of standardization here
stay-foolish-forever commentedon Jul 29, 2026
Hi @shyim, thank you very much for raising this suggestion, and thanks @philippgille for sharing those framework references — shell completion would indeed be a great usability improvement, and we agree it's worth pursuing.
To give some context, the current CLI layer relies on a custom command-parsing implementation built in-house. Migrating to a framework — whether Cobra, urfave/cli, or kingpin — would touch nearly every command and argument definition, making the scope of the change fairly large. We want to plan this carefully to avoid regressions and to avoid breaking existing usage patterns and user scripts.
As for next steps, our core maintainer team is currently working on the architecture design for this area, evaluating how well each framework fits and what impact it would have on the existing structure. We plan to finalize the architecture in the near future, and we'd love to have the community join us in completing the final implementation at that point.
Thanks again for your patience and the valuable suggestion — we'll keep this issue updated with progress 🙏
lizhengfeng101 commentedon Jul 31, 2026
@shyim I will try it as soon as possible.
volkkov commentedon Jul 31, 2026
Worth checking if this reproduces with a fresh install — some package managers cache broken versions.
lizhengfeng101 commentedon Jul 31, 2026
Hi @shyim, @philippgille, @stay-foolish-forever, @volkkov —
This has been shipped in v1.8.3! We migrated the CLI to the Cobra framework, so shell completion (Bash, Zsh, Fish, PowerShell) is now available via:
Thanks for the suggestion and the framework references — they were very helpful in guiding the decision. Give it a try and let us know if anything feels off.
Closing this as completed.
refactor(cli): migrate to Cobra framework for shell completion support (
refactor(cli): migrate to Cobra framework for shell completion support (