g-plane/zsh-yarn-autocompletions

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

m93a opened this issue · 5 comments

m93a commented

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

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

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.

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

m93a commented

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

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.