[sui][cli] Add support for shell completion in CLI using clap_complete#24469
[sui][cli] Add support for shell completion in CLI using clap_complete#24469stefan-mysten merged 1 commit intoMystenLabs:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
related #24297 |
|
Nice @awnion. Thank you. Look forward for it to be pushed! |
|
@awnion How can I test it with Bash on Linux? |
Cvijan4PointO
left a comment
There was a problem hiding this comment.
I like that you did it in a clean and efficient way and I think that this is a good addition to SUI CLI tooling.
If you have Rust and Cargo set up, you can generate the completion file from my branch. E.g like this:
Let me know if you run into any issues with the file path! |
|
Tested with |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
We could use this, autocomplete is always useful, it should not be closed.. |
stefan-mysten
left a comment
There was a problem hiding this comment.
Sorry I missed this, and thanks for the contribution!
Description
feat: Add support for shell completion in CLI using clap_complete
Test plan
Tested by hands yet on ZSH
Need help with testing all the targets
Release notes
Put the output in a file in the right directory for your shell (e.g., for fish in
~/.config/fish/completions/sui.fish) and restart your shell. Use doubleTABto trigger the auto completion menu.