linode / linode-cli

The official Linode command line interface.
https://linode.com
BSD 3-Clause "New" or "Revised" License
375 stars 135 forks source link

feat(completion): add zsh support #609

Open chenrui333 opened 5 months ago

chenrui333 commented 5 months ago

📝 Description

✔️ How to Test

unit test


relates to https://github.com/Homebrew/homebrew-core/pull/170570

jriddle-linode commented 5 months ago

You should be able to convert the bash completions using bashcompinit in zsh without having to make another completion config

lgarber-akamai commented 5 months ago

@chenrui333 I think we're planning on cutting a patch to get only #608 out given this PR will need a bit more vetting/testing. Will that work for you?

chenrui333 commented 5 months ago

yeah, that works for me.

lgarber-akamai commented 4 months ago

@zliang-akamai Just to save you a bit of time for when you review this PR, I tested this PR with oh-my-zsh using the following:

make install
linode-cli completion zsh > ~/.oh-my-zsh/completions/_linodecli
compinit