From c5e30bacccd47b0860b20dba3a5fb037a31be894 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Tue, 5 Sep 2023 15:40:03 +0800 Subject: [PATCH 1/4] =?UTF-8?q?Add=20=E2=80=9COpen=20a=20path=20in=20VS=20?= =?UTF-8?q?Code=E2=80=9D=20(#163)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Although it is largely duplicated to “Open a file or directory in the currently open VS Code window”, this workflow is still valuable because: - It uses `.` as the default `dir`, which is more common in development. - It does not add any additional flags such as `-r`. Signed-off-by: pan93412 Co-authored-by: elvis kahoro --- specs/code/open_a_path_in_vs_code.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 specs/code/open_a_path_in_vs_code.yaml diff --git a/specs/code/open_a_path_in_vs_code.yaml b/specs/code/open_a_path_in_vs_code.yaml new file mode 100644 index 00000000..d4a33951 --- /dev/null +++ b/specs/code/open_a_path_in_vs_code.yaml @@ -0,0 +1,13 @@ +--- +name: Open a path in VS Code +command: "code {{path}}" +tags: ["code"] +description: This workflow opens the current or the specified folder in VS Code. +arguments: + - name: path + description: The file or directory where VS Code opens. The default is the current directory. + default_value: "." +source_url: https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line +author: pan93412 +author_url: "https://github.com/pan93412" +shells: [] From e7e840ac2aba3fd88549e29ccbae5321ee7a60d8 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 5 Sep 2023 20:30:11 -0400 Subject: [PATCH 2/4] fix: typo in "Create Next.js App" (#161) * fix: typo in "Create Next.js App" * Update "App" to be uppercase --------- Co-authored-by: elvis kahoro --- specs/nextjs/create_next_app.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/nextjs/create_next_app.yaml b/specs/nextjs/create_next_app.yaml index 93ec0bd5..956abff5 100644 --- a/specs/nextjs/create_next_app.yaml +++ b/specs/nextjs/create_next_app.yaml @@ -1,5 +1,5 @@ --- -name: Create Next.JS app +name: Create Next.js App command: npx create-next-app {{project_name}} --use-{{package_manager}} tags: - react @@ -12,7 +12,7 @@ arguments: description: The package manager to use for the application default_value: npm source_url: https://nextjs.org/docs/api-reference/create-next-app -description: Create Next.JS application +description: Create a new Next.js application author: Lukas Varkalis author_url: https://github.com/lukasvarkalis shells: [] From be86b6cf8f207cd78ab1dad7c0f7b472d12c0b40 Mon Sep 17 00:00:00 2001 From: Pantelis Karamolegkos Date: Wed, 6 Sep 2023 08:31:11 +0300 Subject: [PATCH 3/4] List pod images by app (#148) * List pods images by app label * Setting correct source_url * Update list_pod_images_by_app.yaml * Changing soure_url and renaming flow to sth more specific as suggested --------- Co-authored-by: Aloke Desai Co-authored-by: elvis kahoro --- specs/kubernetes/list_pod_images_by_app.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specs/kubernetes/list_pod_images_by_app.yaml diff --git a/specs/kubernetes/list_pod_images_by_app.yaml b/specs/kubernetes/list_pod_images_by_app.yaml new file mode 100644 index 00000000..0d6ad827 --- /dev/null +++ b/specs/kubernetes/list_pod_images_by_app.yaml @@ -0,0 +1,15 @@ +--- +name: List all Kubernetes pods by app label +command: > + kubectl get pods -l app={{app}} -o jsonpath='{range .items[*]}{"\n"}{range .spec.containers[*]}{.name}{"\t"}{.image}{"\n"}{end}{end}' | sort | uniq +tags: + - kubernetes +description: Lists the images of pods fetched by app label +arguments: + - name: app + description: The value of the app label + default_value: ~ +source_url: "https://kubernetes.io/docs/reference/kubectl/jsonpath/" +author: pkaramol +author_url: "https://www.linkedin.com/in/pkaramol/" +shells: [] From 3ef2e22874f3f1497812b89eaaa3cc2021b20364 Mon Sep 17 00:00:00 2001 From: pan93412 Date: Wed, 6 Sep 2023 13:42:05 +0800 Subject: [PATCH 4/4] Add the Insider variant for Code (Insiders) (#165) * Add the Insider variant for Code (Insiders) Signed-off-by: pan93412 * Repharse the description --------- Signed-off-by: pan93412 Co-authored-by: elvis kahoro --- .../open_a_path_in_vs_code_insiders.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 specs/code-insiders/open_a_path_in_vs_code_insiders.yaml diff --git a/specs/code-insiders/open_a_path_in_vs_code_insiders.yaml b/specs/code-insiders/open_a_path_in_vs_code_insiders.yaml new file mode 100644 index 00000000..ca7087ec --- /dev/null +++ b/specs/code-insiders/open_a_path_in_vs_code_insiders.yaml @@ -0,0 +1,13 @@ +--- +name: Open a path in VS Code (Insiders) +command: "code-insiders {{path}}" +tags: ["code-insiders"] +description: This workflow opens the current or the specified folder in VS Code. +arguments: + - name: path + description: The file or directory for VS Code to open. The default is the current directory. + default_value: "." +source_url: https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line +author: pan93412 +author_url: "https://github.com/pan93412" +shells: []