NestJS CLI Completion for ZSH
I've been using NestJS lately and their cli is really handy when it comes to generate new modules, controllers and stuff.
Since I haven't found any shell completion function, I wrote one that suits my needs.
- zsh
- Clone this repository
git clone https://github.com/filipekiss/nestjs-cli-completion ~/.completion/nestjs
- Add the path to your
fpath
:
fpath=(~/.completion/nestjs ${fpath})
- Close your terminal session and start a new one.
nest
command should have auto completion now.
- nest commands: add, generate (g), info (i), new (n) and update (u)
- Argument description, for example,
nest new
- Generators auto-complete
- Short commands (
nest n
,nest g co
, etc…)
- Contextual options
I don't use bash as my main shell and I have no clue how to write bash completions, sorry. Feel free to write one and make a pull-request, though :)
nestjs-cli-completion © 2019+, Filipe Kiss Released under the MIT License.
Authored and maintained by Filipe Kiss with help from contributors (list).
GitHub @filipekiss · Twitter @filipekiss