Skip to content

Commit 495b5cf

Browse files
nagautaelvis kahoro
andauthored
add: Nest CLI generate commands (#166)
* add: nestcli generate commands * update: name not to make poeple confused --------- Co-authored-by: elvis kahoro <[email protected]>
1 parent c02d2c8 commit 495b5cf

File tree

5 files changed

+70
-0
lines changed

5 files changed

+70
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Generate an app using Nest.js
3+
command: "nest g co {{appName}}"
4+
tags:
5+
- nestcli
6+
description: Generate a app with the given name.
7+
arguments:
8+
- name: appName
9+
description: the name for the app to be generated
10+
default_value: foo
11+
source_url: "https://docs.nestjs.com/cli/overview"
12+
author: nagauta
13+
author_url: "https://github.com/nagauta"
14+
shells: []
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Generate a class using Nest.js
3+
command: "nest g cl {{className}}"
4+
tags:
5+
- nestcli
6+
description: Generate a class with the given name.
7+
arguments:
8+
- name: className
9+
description: the name for the class to be generated
10+
default_value: foo
11+
source_url: "https://docs.nestjs.com/cli/overview"
12+
author: nagauta
13+
author_url: "https://github.com/nagauta"
14+
shells: []
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Generate a controller using Nest.js
3+
command: "nest g co {{controllerName}}"
4+
tags:
5+
- nestcli
6+
description: Generate a controller with the given name.
7+
arguments:
8+
- name: controllerName
9+
description: the name for the controller to be generated
10+
default_value: foo
11+
source_url: "https://docs.nestjs.com/cli/overview"
12+
author: nagauta
13+
author_url: "https://github.com/nagauta"
14+
shells: []
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Generate a interface using Nest.js
3+
command: "nest g itf {{interfaceName}}"
4+
tags:
5+
- nestcli
6+
description: Generate a interface with the given name.
7+
arguments:
8+
- name: interfaceName
9+
description: the name for the interface to be generated
10+
default_value: foo
11+
source_url: "https://docs.nestjs.com/cli/overview"
12+
author: nagauta
13+
author_url: "https://github.com/nagauta"
14+
shells: []
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Generate a service using Nest.js
3+
command: "nest g s {{serviceName}}"
4+
tags:
5+
- nestcli
6+
description: Generate a service with the given name.
7+
arguments:
8+
- name: serviceName
9+
description: the name for the service to be generated
10+
default_value: foo
11+
source_url: "https://docs.nestjs.com/cli/overview"
12+
author: nagauta
13+
author_url: "https://github.com/nagauta"
14+
shells: []

0 commit comments

Comments
 (0)