From 495b5cff00809e93df7aa2e5dd354fd9ce9ff1af Mon Sep 17 00:00:00 2001 From: Michitoshi Yano Date: Tue, 12 Sep 2023 02:21:37 +0900 Subject: [PATCH] add: Nest CLI generate commands (#166) * add: nestcli generate commands * update: name not to make poeple confused --------- Co-authored-by: elvis kahoro --- specs/nest_cli/generate_app_nestjs.yaml | 14 ++++++++++++++ specs/nest_cli/generate_class_nestjs.yaml | 14 ++++++++++++++ specs/nest_cli/generate_controller_nestjs.yaml | 14 ++++++++++++++ specs/nest_cli/generate_interface_nestjs.yaml | 14 ++++++++++++++ specs/nest_cli/generate_service_nestjs.yaml | 14 ++++++++++++++ 5 files changed, 70 insertions(+) create mode 100644 specs/nest_cli/generate_app_nestjs.yaml create mode 100644 specs/nest_cli/generate_class_nestjs.yaml create mode 100644 specs/nest_cli/generate_controller_nestjs.yaml create mode 100644 specs/nest_cli/generate_interface_nestjs.yaml create mode 100644 specs/nest_cli/generate_service_nestjs.yaml diff --git a/specs/nest_cli/generate_app_nestjs.yaml b/specs/nest_cli/generate_app_nestjs.yaml new file mode 100644 index 0000000..55a108c --- /dev/null +++ b/specs/nest_cli/generate_app_nestjs.yaml @@ -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: [] diff --git a/specs/nest_cli/generate_class_nestjs.yaml b/specs/nest_cli/generate_class_nestjs.yaml new file mode 100644 index 0000000..3d956af --- /dev/null +++ b/specs/nest_cli/generate_class_nestjs.yaml @@ -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: [] diff --git a/specs/nest_cli/generate_controller_nestjs.yaml b/specs/nest_cli/generate_controller_nestjs.yaml new file mode 100644 index 0000000..a575856 --- /dev/null +++ b/specs/nest_cli/generate_controller_nestjs.yaml @@ -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: [] diff --git a/specs/nest_cli/generate_interface_nestjs.yaml b/specs/nest_cli/generate_interface_nestjs.yaml new file mode 100644 index 0000000..caade96 --- /dev/null +++ b/specs/nest_cli/generate_interface_nestjs.yaml @@ -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: [] diff --git a/specs/nest_cli/generate_service_nestjs.yaml b/specs/nest_cli/generate_service_nestjs.yaml new file mode 100644 index 0000000..852b5b9 --- /dev/null +++ b/specs/nest_cli/generate_service_nestjs.yaml @@ -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: []