Skip to content

Commit

Permalink
add: Nest CLI generate commands (#166)
Browse files Browse the repository at this point in the history
* add: nestcli generate commands

* update: name not to make poeple confused

---------

Co-authored-by: elvis kahoro <elvis@warp.dev>
  • Loading branch information
nagauta and elvis kahoro authored Sep 11, 2023
1 parent c02d2c8 commit 495b5cf
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 0 deletions.
14 changes: 14 additions & 0 deletions specs/nest_cli/generate_app_nestjs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Generate an app using Nest.js
command: "nest g co {{appName}}"
tags:
- nestcli
description: Generate a app with the given name.
arguments:
- name: appName
description: the name for the app to be generated
default_value: foo
source_url: "https://docs.nestjs.com/cli/overview"
author: nagauta
author_url: "https://github.com/nagauta"
shells: []
14 changes: 14 additions & 0 deletions specs/nest_cli/generate_class_nestjs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Generate a class using Nest.js
command: "nest g cl {{className}}"
tags:
- nestcli
description: Generate a class with the given name.
arguments:
- name: className
description: the name for the class to be generated
default_value: foo
source_url: "https://docs.nestjs.com/cli/overview"
author: nagauta
author_url: "https://github.com/nagauta"
shells: []
14 changes: 14 additions & 0 deletions specs/nest_cli/generate_controller_nestjs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Generate a controller using Nest.js
command: "nest g co {{controllerName}}"
tags:
- nestcli
description: Generate a controller with the given name.
arguments:
- name: controllerName
description: the name for the controller to be generated
default_value: foo
source_url: "https://docs.nestjs.com/cli/overview"
author: nagauta
author_url: "https://github.com/nagauta"
shells: []
14 changes: 14 additions & 0 deletions specs/nest_cli/generate_interface_nestjs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Generate a interface using Nest.js
command: "nest g itf {{interfaceName}}"
tags:
- nestcli
description: Generate a interface with the given name.
arguments:
- name: interfaceName
description: the name for the interface to be generated
default_value: foo
source_url: "https://docs.nestjs.com/cli/overview"
author: nagauta
author_url: "https://github.com/nagauta"
shells: []
14 changes: 14 additions & 0 deletions specs/nest_cli/generate_service_nestjs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Generate a service using Nest.js
command: "nest g s {{serviceName}}"
tags:
- nestcli
description: Generate a service with the given name.
arguments:
- name: serviceName
description: the name for the service to be generated
default_value: foo
source_url: "https://docs.nestjs.com/cli/overview"
author: nagauta
author_url: "https://github.com/nagauta"
shells: []

0 comments on commit 495b5cf

Please sign in to comment.