Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: Nest CLI generate commands #166

Merged
merged 9 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions specs/nest_cli/generate_app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Generate an app
elviskahoro marked this conversation as resolved.
Show resolved Hide resolved
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.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Generate a class
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above!

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.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Generate a controller
elviskahoro marked this conversation as resolved.
Show resolved Hide resolved
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.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Generate a interface
elviskahoro marked this conversation as resolved.
Show resolved Hide resolved
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.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Generate a service
elviskahoro marked this conversation as resolved.
Show resolved Hide resolved
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: []
Loading