g-plane / zsh-yarn-autocompletions

Zsh plugin for Yarn autocompletions.
MIT License
578 stars 18 forks source link

Auto completion for: yarn <a built-in command> #13

Closed m93a closed 4 years ago

m93a commented 5 years ago

Hey, this is a very cool plugin! However when I type yarn a it doesn't autocomplete it to yarn add. This is a pitty, as autocompletion for custom yarn scripts works just fine. Would it be possible to add the built-in commands like add and remove to the list?

This should be the complete list of built-in commands:

access, add, audit, autoclean, bin, cache, check,
config, create, exec, generate-lock-entry, global,
help, import, info, init, install, licenses, link,
list, login, logout, node, outdated, owner, pack,
publish, remove, run, tag, team, unlink, unplug,
upgrade, upgrade-interactive, version, versions,
why, workspace, workspaces
g-plane commented 5 years ago

That's a good idea. However, is it okay if we add all commands? They are too many but some are not frequently used.

m93a commented 5 years ago

That's what I thought too. But at least audit, add, create, run, remove, info, init, help, publish would be great. I don't think I ever used more.

g-plane commented 5 years ago

I'm busy on other projects recently, so I can't implement this now. Would you mind it?

m93a commented 5 years ago

No problem :) I'm also quite busy but if I have free time earlier than you, I might try making a PR.

g-plane commented 4 years ago

I think there will be conflicts with yarn run, because yarn xxx (xxx is not one of built-in commands) means yarn run xxx. And, I think those commands won't be used frequently.