10

`ockam completion --shell {bash|zsh|fish}` command for shell completion · Issue...

 2 years ago
source link: https://github.com/build-trust/ockam/issues/3220
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Member

mrinalwadhwa commented 7 days ago

edited

Current Behaviour

Users have to type the full ockam commands

Desired Behaviour

Generate shell completion scripts for various shells

ockam completion --shell {bash|zsh|fish}

This would require adding the completion command here:
https://github.com/build-trust/ockam/tree/develop/implementations/rust/ockam/ockam_command/src

Clap Complete seems to have everything we need for this.
https://github.com/clap-rs/clap/tree/master/clap_complete

After this command exists we can also look at adding it to our homebrew formula
https://github.com/build-trust/homebrew-ockam/blob/main/ockam.rb

Github's gh completion command seems good to model ockam completion behavior after
https://cli.github.com/manual/gh_completion


We love helping new contributors!
If you have questions or need help as you work on your first Ockam contribution, please leave a comment on this discussion.
If you're looking for other issues to contribute to, checkout this discussion and labels - good first issue or help wanted

sobi3ch reacted with heart emoji All reactions

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK