Skip to content

filipekiss/nestjs-cli-completion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

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.

Requirements

  • zsh

Installation

  1. Clone this repository
git clone https://github.com/filipekiss/nestjs-cli-completion ~/.completion/nestjs
  1. Add the path to your fpath:
fpath=(~/.completion/nestjs ${fpath})
  1. Close your terminal session and start a new one. nest command should have auto completion now.

Completion features

  • nest commands: add, generate (g), info (i), new (n) and update (u)

image

  • Argument description, for example, nest new

image

  • Generators auto-complete

image

  • Short commands (nest n, nest g co, etc…)

image

  • Contextual options

image

Why no bash completion?

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

Releases

No releases published

Packages

 
 
 

Languages