From 37e469ef8dee0b106ca384643e97f2cc3fbcaa5b Mon Sep 17 00:00:00 2001 From: mie035 Date: Sat, 3 Jun 2023 14:09:29 +0900 Subject: [PATCH 1/6] add: nestcli generate commands --- specs/nest_cli/generate_app.yaml | 14 ++++++++++++++ specs/nest_cli/generate_class.yaml | 14 ++++++++++++++ specs/nest_cli/generate_controller.yaml | 14 ++++++++++++++ specs/nest_cli/generate_interface.yaml | 14 ++++++++++++++ specs/nest_cli/generate_service.yaml | 14 ++++++++++++++ 5 files changed, 70 insertions(+) create mode 100644 specs/nest_cli/generate_app.yaml create mode 100644 specs/nest_cli/generate_class.yaml create mode 100644 specs/nest_cli/generate_controller.yaml create mode 100644 specs/nest_cli/generate_interface.yaml create mode 100644 specs/nest_cli/generate_service.yaml diff --git a/specs/nest_cli/generate_app.yaml b/specs/nest_cli/generate_app.yaml new file mode 100644 index 00000000..000e7f5f --- /dev/null +++ b/specs/nest_cli/generate_app.yaml @@ -0,0 +1,14 @@ +--- +name: Generate an app +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.yaml b/specs/nest_cli/generate_class.yaml new file mode 100644 index 00000000..8c72d16e --- /dev/null +++ b/specs/nest_cli/generate_class.yaml @@ -0,0 +1,14 @@ +--- +name: Generate a class +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.yaml b/specs/nest_cli/generate_controller.yaml new file mode 100644 index 00000000..0774b30c --- /dev/null +++ b/specs/nest_cli/generate_controller.yaml @@ -0,0 +1,14 @@ +--- +name: Generate a controller +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.yaml b/specs/nest_cli/generate_interface.yaml new file mode 100644 index 00000000..e9c90d32 --- /dev/null +++ b/specs/nest_cli/generate_interface.yaml @@ -0,0 +1,14 @@ +--- +name: Generate a interface +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.yaml b/specs/nest_cli/generate_service.yaml new file mode 100644 index 00000000..64ef5734 --- /dev/null +++ b/specs/nest_cli/generate_service.yaml @@ -0,0 +1,14 @@ +--- +name: Generate a service +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: [] From 6efe60e54436285c3737e8e78fd1dc3664a25ac5 Mon Sep 17 00:00:00 2001 From: mie035 Date: Sat, 9 Sep 2023 21:55:22 +0900 Subject: [PATCH 2/6] update: name not to make poeple confused --- specs/nest_cli/{generate_app.yaml => generate_app_nestjs.yaml} | 2 +- .../{generate_class.yaml => generate_class_nestjs.yaml} | 2 +- ...generate_controller.yaml => generate_controller_nestjs.yaml} | 2 +- .../{generate_interface.yaml => generate_interface_nestjs.yaml} | 2 +- .../{generate_service.yaml => generate_service_nestjs.yaml} | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename specs/nest_cli/{generate_app.yaml => generate_app_nestjs.yaml} (90%) rename specs/nest_cli/{generate_class.yaml => generate_class_nestjs.yaml} (90%) rename specs/nest_cli/{generate_controller.yaml => generate_controller_nestjs.yaml} (89%) rename specs/nest_cli/{generate_interface.yaml => generate_interface_nestjs.yaml} (89%) rename specs/nest_cli/{generate_service.yaml => generate_service_nestjs.yaml} (89%) diff --git a/specs/nest_cli/generate_app.yaml b/specs/nest_cli/generate_app_nestjs.yaml similarity index 90% rename from specs/nest_cli/generate_app.yaml rename to specs/nest_cli/generate_app_nestjs.yaml index 000e7f5f..55a108c8 100644 --- a/specs/nest_cli/generate_app.yaml +++ b/specs/nest_cli/generate_app_nestjs.yaml @@ -1,5 +1,5 @@ --- -name: Generate an app +name: Generate an app using Nest.js command: "nest g co {{appName}}" tags: - nestcli diff --git a/specs/nest_cli/generate_class.yaml b/specs/nest_cli/generate_class_nestjs.yaml similarity index 90% rename from specs/nest_cli/generate_class.yaml rename to specs/nest_cli/generate_class_nestjs.yaml index 8c72d16e..3d956af7 100644 --- a/specs/nest_cli/generate_class.yaml +++ b/specs/nest_cli/generate_class_nestjs.yaml @@ -1,5 +1,5 @@ --- -name: Generate a class +name: Generate a class using Nest.js command: "nest g cl {{className}}" tags: - nestcli diff --git a/specs/nest_cli/generate_controller.yaml b/specs/nest_cli/generate_controller_nestjs.yaml similarity index 89% rename from specs/nest_cli/generate_controller.yaml rename to specs/nest_cli/generate_controller_nestjs.yaml index 0774b30c..a575856a 100644 --- a/specs/nest_cli/generate_controller.yaml +++ b/specs/nest_cli/generate_controller_nestjs.yaml @@ -1,5 +1,5 @@ --- -name: Generate a controller +name: Generate a controller using Nest.js command: "nest g co {{controllerName}}" tags: - nestcli diff --git a/specs/nest_cli/generate_interface.yaml b/specs/nest_cli/generate_interface_nestjs.yaml similarity index 89% rename from specs/nest_cli/generate_interface.yaml rename to specs/nest_cli/generate_interface_nestjs.yaml index e9c90d32..caade96e 100644 --- a/specs/nest_cli/generate_interface.yaml +++ b/specs/nest_cli/generate_interface_nestjs.yaml @@ -1,5 +1,5 @@ --- -name: Generate a interface +name: Generate a interface using Nest.js command: "nest g itf {{interfaceName}}" tags: - nestcli diff --git a/specs/nest_cli/generate_service.yaml b/specs/nest_cli/generate_service_nestjs.yaml similarity index 89% rename from specs/nest_cli/generate_service.yaml rename to specs/nest_cli/generate_service_nestjs.yaml index 64ef5734..852b5b98 100644 --- a/specs/nest_cli/generate_service.yaml +++ b/specs/nest_cli/generate_service_nestjs.yaml @@ -1,5 +1,5 @@ --- -name: Generate a service +name: Generate a service using Nest.js command: "nest g s {{serviceName}}" tags: - nestcli From 524a92da3cc6e4381fab6584d2702ef0abc8deb4 Mon Sep 17 00:00:00 2001 From: mie035 Date: Sun, 26 May 2024 09:55:18 +0900 Subject: [PATCH 3/6] add ghq commands --- specs/ghq/create-a-repository-ghq.yaml | 10 ++++++++++ specs/ghq/get-root-ghq.yaml | 11 +++++++++++ specs/ghq/list-repositories-ghq.yaml | 10 ++++++++++ specs/ghq/romove-a-repository-ghq.yaml | 17 +++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 specs/ghq/create-a-repository-ghq.yaml create mode 100644 specs/ghq/get-root-ghq.yaml create mode 100644 specs/ghq/list-repositories-ghq.yaml create mode 100644 specs/ghq/romove-a-repository-ghq.yaml diff --git a/specs/ghq/create-a-repository-ghq.yaml b/specs/ghq/create-a-repository-ghq.yaml new file mode 100644 index 00000000..d207a901 --- /dev/null +++ b/specs/ghq/create-a-repository-ghq.yaml @@ -0,0 +1,10 @@ +name: Create new repository +command: |- + ghq create {{repository_name}} +tags: + - ghq +description: Creates new repository. +source_url: "https://github.com/x-motemen/ghq" +author: nagauta +author_url: "https://github.com/nagauta" +shells: [] diff --git a/specs/ghq/get-root-ghq.yaml b/specs/ghq/get-root-ghq.yaml new file mode 100644 index 00000000..9d399430 --- /dev/null +++ b/specs/ghq/get-root-ghq.yaml @@ -0,0 +1,11 @@ +name: Print repositories' root +command: |- + ghq root +tags: + - ghq +description: Print repositories' root (i.e., `ghq.root`). Without '--all' option, the primary one is shown. +arguments: +source_url: "https://github.com/x-motemen/ghq" +author: nagauta +author_url: "https://github.com/nagauta" +shells: [] diff --git a/specs/ghq/list-repositories-ghq.yaml b/specs/ghq/list-repositories-ghq.yaml new file mode 100644 index 00000000..e9134a88 --- /dev/null +++ b/specs/ghq/list-repositories-ghq.yaml @@ -0,0 +1,10 @@ +--- +name: List Repostories managed by ghq +command: "ghq list" +tags: + - ghq +description: List Repostories managed by ghq +source_url: "https://github.com/x-motemen/ghq" +author: nagauta +author_url: "https://github.com/nagauta" +shells: [] diff --git a/specs/ghq/romove-a-repository-ghq.yaml b/specs/ghq/romove-a-repository-ghq.yaml new file mode 100644 index 00000000..7531db8d --- /dev/null +++ b/specs/ghq/romove-a-repository-ghq.yaml @@ -0,0 +1,17 @@ +name: Remove local repository +command: |- + ghq rm {{repository_name}} {{dry-run}} +tags: + - ghq +description: Remove local repository. If '--dry-run' option is given, the repository is not actually removed but the path to it is printed. +arguments: + - name: repository_name + description: The name of the repository to be removed + default_value: ~ + - name: dry-run + description: opional. the repository is not actually removed but the path to it is printed. (e.g., --dry-run) + default_value: ~ +source_url: "https://github.com/x-motemen/ghq" +author: nagauta +author_url: "https://github.com/nagauta" +shells: [] From 8cc93703d5261cc171f4ff97f2f7a6ab1b43727f Mon Sep 17 00:00:00 2001 From: mie035 Date: Sun, 26 May 2024 09:57:16 +0900 Subject: [PATCH 4/6] chore --- specs/ghq/romove-a-repository-ghq.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/specs/ghq/romove-a-repository-ghq.yaml b/specs/ghq/romove-a-repository-ghq.yaml index 7531db8d..fa6a3049 100644 --- a/specs/ghq/romove-a-repository-ghq.yaml +++ b/specs/ghq/romove-a-repository-ghq.yaml @@ -1,15 +1,12 @@ name: Remove local repository command: |- - ghq rm {{repository_name}} {{dry-run}} + ghq rm {{repository_name}} tags: - ghq description: Remove local repository. If '--dry-run' option is given, the repository is not actually removed but the path to it is printed. arguments: - name: repository_name - description: The name of the repository to be removed - default_value: ~ - - name: dry-run - description: opional. the repository is not actually removed but the path to it is printed. (e.g., --dry-run) + description: The name of the repository to be removed. optionaly with --dry-run, the repository is not actually removed but the path to it is printed. (e.g., ) default_value: ~ source_url: "https://github.com/x-motemen/ghq" author: nagauta From 23136a67b775d8fe92646ab72f4357f3ce00da52 Mon Sep 17 00:00:00 2001 From: mie035 Date: Sun, 26 May 2024 12:14:53 +0900 Subject: [PATCH 5/6] fix format --- specs/ghq/list-repositories-ghq.yaml | 4 ++-- specs/ghq/romove-a-repository-ghq.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/ghq/list-repositories-ghq.yaml b/specs/ghq/list-repositories-ghq.yaml index e9134a88..770763aa 100644 --- a/specs/ghq/list-repositories-ghq.yaml +++ b/specs/ghq/list-repositories-ghq.yaml @@ -1,9 +1,9 @@ --- -name: List Repostories managed by ghq +name: List Repositories managed by ghq command: "ghq list" tags: - ghq -description: List Repostories managed by ghq +description: List Repositories managed by ghq source_url: "https://github.com/x-motemen/ghq" author: nagauta author_url: "https://github.com/nagauta" diff --git a/specs/ghq/romove-a-repository-ghq.yaml b/specs/ghq/romove-a-repository-ghq.yaml index fa6a3049..5a49e810 100644 --- a/specs/ghq/romove-a-repository-ghq.yaml +++ b/specs/ghq/romove-a-repository-ghq.yaml @@ -6,7 +6,7 @@ tags: description: Remove local repository. If '--dry-run' option is given, the repository is not actually removed but the path to it is printed. arguments: - name: repository_name - description: The name of the repository to be removed. optionaly with --dry-run, the repository is not actually removed but the path to it is printed. (e.g., ) + description: The name of the repository to be removed. optionally with --dry-run, the repository is not actually removed but the path to it is printed. (e.g., ) default_value: ~ source_url: "https://github.com/x-motemen/ghq" author: nagauta From 614eb44d8dba79e80b186dd8a1515a9aebac8f7d Mon Sep 17 00:00:00 2001 From: mie035 Date: Sun, 26 May 2024 12:21:22 +0900 Subject: [PATCH 6/6] fix yaml --- specs/ghq/get-root-ghq.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/specs/ghq/get-root-ghq.yaml b/specs/ghq/get-root-ghq.yaml index 9d399430..76e3be9e 100644 --- a/specs/ghq/get-root-ghq.yaml +++ b/specs/ghq/get-root-ghq.yaml @@ -4,7 +4,6 @@ command: |- tags: - ghq description: Print repositories' root (i.e., `ghq.root`). Without '--all' option, the primary one is shown. -arguments: source_url: "https://github.com/x-motemen/ghq" author: nagauta author_url: "https://github.com/nagauta"