linode-cli icon indicating copy to clipboard operation
linode-cli copied to clipboard

feat(completion): add zsh support

Open chenrui333 opened this issue 1 year ago • 4 comments
trafficstars

📝 Description

  • feat(completion): add zsh support

✔️ How to Test

unit test


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

chenrui333 avatar May 01 '24 22:05 chenrui333

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

jriddle-linode avatar May 02 '24 15:05 jriddle-linode

@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?

lgarber-akamai avatar May 02 '24 17:05 lgarber-akamai

yeah, that works for me.

chenrui333 avatar May 02 '24 20:05 chenrui333

@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

lgarber-akamai avatar Jun 04 '24 19:06 lgarber-akamai