From 18decc916fb94cb4e57843e5a9f88d2357c88294 Mon Sep 17 00:00:00 2001 From: Tim Smith <69870077+timscodebase@users.noreply.github.com> Date: Mon, 26 Sep 2022 08:01:38 -0700 Subject: [PATCH 01/77] Added pnpm --- .../find_version_of_an_installed_pnpm_package.yaml | 14 ++++++++++++++ .../list_all_globally_installed_pnpm_packages.yaml | 11 +++++++++++ specs/pnpm/reinstall_all_pnpm_dependencies.yml | 11 +++++++++++ specs/pnpm/remove_all_global_pnpm_modules.yml | 11 +++++++++++ specs/pnpm/uninstall_a_local_pnpm_package.yaml | 14 ++++++++++++++ ...in_package_json_to_the_latest_version_pnpm.yaml | 11 +++++++++++ specs/pnpm/update_pnpm_to_the_latest_version.yaml | 11 +++++++++++ 7 files changed, 83 insertions(+) create mode 100644 specs/pnpm/find_version_of_an_installed_pnpm_package.yaml create mode 100644 specs/pnpm/list_all_globally_installed_pnpm_packages.yaml create mode 100644 specs/pnpm/reinstall_all_pnpm_dependencies.yml create mode 100644 specs/pnpm/remove_all_global_pnpm_modules.yml create mode 100644 specs/pnpm/uninstall_a_local_pnpm_package.yaml create mode 100644 specs/pnpm/update_each_dependency_in_package_json_to_the_latest_version_pnpm.yaml create mode 100644 specs/pnpm/update_pnpm_to_the_latest_version.yaml diff --git a/specs/pnpm/find_version_of_an_installed_pnpm_package.yaml b/specs/pnpm/find_version_of_an_installed_pnpm_package.yaml new file mode 100644 index 00000000..2e7d42da --- /dev/null +++ b/specs/pnpm/find_version_of_an_installed_pnpm_package.yaml @@ -0,0 +1,14 @@ +--- +name: Find version of an installed pnpm package +command: "pnpm list {{package_name}}" +tags: + - pnpm +description: "Lists the version name of an installed package. To see the versions of all installed packages, run `pnpm list` without passing a package name." +arguments: + - name: package_name + description: The name of the package + default_value: ~ +source_url: "https://pnpm.io/6.x/cli/list" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] diff --git a/specs/pnpm/list_all_globally_installed_pnpm_packages.yaml b/specs/pnpm/list_all_globally_installed_pnpm_packages.yaml new file mode 100644 index 00000000..9c345de8 --- /dev/null +++ b/specs/pnpm/list_all_globally_installed_pnpm_packages.yaml @@ -0,0 +1,11 @@ +--- +name: List all globally installed NPM packages +command: pnpm ls --depth 0 +tags: + - pnpm +description: "Lists all globally installed PNPM packages, avoiding including any package's dependencies in the view." +arguments: [] +source_url: "https://pnpm.io/6.x/cli/list#--depth-number" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] diff --git a/specs/pnpm/reinstall_all_pnpm_dependencies.yml b/specs/pnpm/reinstall_all_pnpm_dependencies.yml new file mode 100644 index 00000000..8b852fad --- /dev/null +++ b/specs/pnpm/reinstall_all_pnpm_dependencies.yml @@ -0,0 +1,11 @@ +--- +name: Reinstall all PNPM dependencies +command: rm -rf node_modules && pnpm install +tags: + - pnpm +description: Reinstalls all dependencies by removing the node_modules folder and then reinstalling. +arguments: [] +source_url: "https://pnpm.io/cli/install" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] diff --git a/specs/pnpm/remove_all_global_pnpm_modules.yml b/specs/pnpm/remove_all_global_pnpm_modules.yml new file mode 100644 index 00000000..bffc5ae2 --- /dev/null +++ b/specs/pnpm/remove_all_global_pnpm_modules.yml @@ -0,0 +1,11 @@ +--- +name: Remove all global pnpm modules +command: "rm -rf ~/.pnpm-store" +tags: + - pnpm +description: "Removes all global pnpm modules by removing the `~/.pnpm-store` folder." +arguments: [] +source_url: "https://pnpm.io/6.x/uninstall" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] diff --git a/specs/pnpm/uninstall_a_local_pnpm_package.yaml b/specs/pnpm/uninstall_a_local_pnpm_package.yaml new file mode 100644 index 00000000..e8af73b2 --- /dev/null +++ b/specs/pnpm/uninstall_a_local_pnpm_package.yaml @@ -0,0 +1,14 @@ +--- +name: Uninstall a local NPM package +command: "pnpm uninstall {{name}}" +tags: + - pnpm +description: "Removes a module from `node_modules` and from `package.json`." +arguments: + - name: name + description: The name of the package to uninstall + default_value: ~ +source_url: "https://pnpm.io/cli/remove" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] diff --git a/specs/pnpm/update_each_dependency_in_package_json_to_the_latest_version_pnpm.yaml b/specs/pnpm/update_each_dependency_in_package_json_to_the_latest_version_pnpm.yaml new file mode 100644 index 00000000..47e732c1 --- /dev/null +++ b/specs/pnpm/update_each_dependency_in_package_json_to_the_latest_version_pnpm.yaml @@ -0,0 +1,11 @@ +--- +name: Update each dependency in package.json to the latest version (PNPM) +command: "npm config --global set strict-peer-dependencies=false && pnpm update --latest" +tags: + - pnpm +description: "Sets strict-peer-dependencies to false globally and updates each dependency in package.json to the latest version." +arguments: [] +source_url: "https://github.com/pnpm/pnpm/issues/4651" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] diff --git a/specs/pnpm/update_pnpm_to_the_latest_version.yaml b/specs/pnpm/update_pnpm_to_the_latest_version.yaml new file mode 100644 index 00000000..980f2968 --- /dev/null +++ b/specs/pnpm/update_pnpm_to_the_latest_version.yaml @@ -0,0 +1,11 @@ +--- +name: Update NPM to the latest version +command: pnpm update -g pnpm +tags: + - pnpm +description: Updates pnpm to the latest version . +arguments: [] +source_url: "https://pnpm.io/cli/update" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] From 9a6f5ef7917ba6e4f38443a4a1154341deacf666 Mon Sep 17 00:00:00 2001 From: Tim Smith <69870077+timscodebase@users.noreply.github.com> Date: Fri, 30 Sep 2022 08:22:47 -0700 Subject: [PATCH 02/77] nits ;) --- specs/pnpm/update_pnpm_to_the_latest_version.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/pnpm/update_pnpm_to_the_latest_version.yaml b/specs/pnpm/update_pnpm_to_the_latest_version.yaml index 980f2968..72443ad7 100644 --- a/specs/pnpm/update_pnpm_to_the_latest_version.yaml +++ b/specs/pnpm/update_pnpm_to_the_latest_version.yaml @@ -1,9 +1,9 @@ --- -name: Update NPM to the latest version +name: Update PNPM to the latest version command: pnpm update -g pnpm tags: - pnpm -description: Updates pnpm to the latest version . +description: Updates pnpm to the latest version. arguments: [] source_url: "https://pnpm.io/cli/update" author: Tim Smith From 78a4019aea20d0df641fa25486441fc0b1b0d0d4 Mon Sep 17 00:00:00 2001 From: Tim Smith <69870077+timscodebase@users.noreply.github.com> Date: Fri, 30 Sep 2022 08:22:49 -0700 Subject: [PATCH 03/77] nits ;) --- {workflows => specs/turborepo/workflows}/Cargo.toml | 0 {workflows => specs/turborepo/workflows}/build.rs | 0 {workflows => specs/turborepo/workflows}/src/lib.rs | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename {workflows => specs/turborepo/workflows}/Cargo.toml (100%) rename {workflows => specs/turborepo/workflows}/build.rs (100%) rename {workflows => specs/turborepo/workflows}/src/lib.rs (100%) diff --git a/workflows/Cargo.toml b/specs/turborepo/workflows/Cargo.toml similarity index 100% rename from workflows/Cargo.toml rename to specs/turborepo/workflows/Cargo.toml diff --git a/workflows/build.rs b/specs/turborepo/workflows/build.rs similarity index 100% rename from workflows/build.rs rename to specs/turborepo/workflows/build.rs diff --git a/workflows/src/lib.rs b/specs/turborepo/workflows/src/lib.rs similarity index 100% rename from workflows/src/lib.rs rename to specs/turborepo/workflows/src/lib.rs From 0c7798c1e52dd72007a156dc674469eb179513d0 Mon Sep 17 00:00:00 2001 From: Tim Smith <69870077+timscodebase@users.noreply.github.com> Date: Fri, 30 Sep 2022 09:15:20 -0700 Subject: [PATCH 04/77] PNPM --- specs/pnpm/uninstall_a_local_pnpm_package.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/pnpm/uninstall_a_local_pnpm_package.yaml b/specs/pnpm/uninstall_a_local_pnpm_package.yaml index e8af73b2..596b798e 100644 --- a/specs/pnpm/uninstall_a_local_pnpm_package.yaml +++ b/specs/pnpm/uninstall_a_local_pnpm_package.yaml @@ -1,5 +1,5 @@ --- -name: Uninstall a local NPM package +name: Uninstall a local PNPM package command: "pnpm uninstall {{name}}" tags: - pnpm From c0f63d37a17108150f29d03651c0a55683f4d931 Mon Sep 17 00:00:00 2001 From: Tim Smith <69870077+timscodebase@users.noreply.github.com> Date: Fri, 30 Sep 2022 09:16:20 -0700 Subject: [PATCH 05/77] PNPN --- specs/pnpm/list_all_globally_installed_pnpm_packages.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/pnpm/list_all_globally_installed_pnpm_packages.yaml b/specs/pnpm/list_all_globally_installed_pnpm_packages.yaml index 9c345de8..57686477 100644 --- a/specs/pnpm/list_all_globally_installed_pnpm_packages.yaml +++ b/specs/pnpm/list_all_globally_installed_pnpm_packages.yaml @@ -1,5 +1,5 @@ --- -name: List all globally installed NPM packages +name: List all globally installed PNPM packages command: pnpm ls --depth 0 tags: - pnpm From 5e9a4253c355556bb1e7878256c3fcd868c880cc Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Mon, 4 Sep 2023 23:54:55 -0700 Subject: [PATCH 06/77] fix: Supressing GitHub Action's Clippy Errors --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bb5b8d3b..4d1bbcc3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,10 +37,10 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: -- -D warnings + args: -- -A warnings - name: Run clippy on tests uses: actions-rs/cargo@v1 with: command: clippy - args: --tests -- -D warnings + args: --tests -- -A warnings From c4dc927c5bd6faab9f06607226722fff5e82cf3c Mon Sep 17 00:00:00 2001 From: Chad Ostrowski <221614+chadoh@users.noreply.github.com> Date: Thu, 15 Dec 2022 10:51:08 -0500 Subject: [PATCH 07/77] feat: add cosmwasm optimization workflows Long, hard-to-remember commands for optimizing CosmWasm projects --- specs/cosmwasm/cosmwasm-optimize-arm64.yaml | 17 +++++++++++++++++ .../cosmwasm-optimize-workspace-arm64.yaml | 16 ++++++++++++++++ specs/cosmwasm/cosmwasm-optimize-workspace.yaml | 15 +++++++++++++++ specs/cosmwasm/cosmwasm-optimize.yaml | 16 ++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 specs/cosmwasm/cosmwasm-optimize-arm64.yaml create mode 100644 specs/cosmwasm/cosmwasm-optimize-workspace-arm64.yaml create mode 100644 specs/cosmwasm/cosmwasm-optimize-workspace.yaml create mode 100644 specs/cosmwasm/cosmwasm-optimize.yaml diff --git a/specs/cosmwasm/cosmwasm-optimize-arm64.yaml b/specs/cosmwasm/cosmwasm-optimize-arm64.yaml new file mode 100644 index 00000000..e43244b5 --- /dev/null +++ b/specs/cosmwasm/cosmwasm-optimize-arm64.yaml @@ -0,0 +1,17 @@ +--- +name: Optimize CosmWasm Project (Apple ARM Chips) +command: + docker run --rm -v "$(pwd)":/code + --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target + --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry + cosmwasm/rust-optimizer-arm64:0.12.8 +tags: + - cosmwasm +description: > + Optimize a CosmWasm smart contract project. If a workspace with multiple + contracts, use workspace-specific version. Requires Docker to be installed + and running. Uses the experimental arm64 variant for use with Apple's chips + (M1 & M2 Macs, etc). +source_url: https://github.com/CosmWasm/rust-optimizer +author: chadoh +author_url: https://chadoh.com diff --git a/specs/cosmwasm/cosmwasm-optimize-workspace-arm64.yaml b/specs/cosmwasm/cosmwasm-optimize-workspace-arm64.yaml new file mode 100644 index 00000000..cef7e807 --- /dev/null +++ b/specs/cosmwasm/cosmwasm-optimize-workspace-arm64.yaml @@ -0,0 +1,16 @@ +--- +name: Optimize CosmWasm Workspace Project (Apple ARM Chips) +command: > + docker run --rm -v "$(pwd)":/code + --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target + --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry + cosmwasm/workspace-optimizer-arm64:0.12.8 +tags: + - cosmwasm +description: > + Optimize a CosmWasm project that is organized as a workspace with multiple + member contracts. Requires Docker to be installed and running. Uses the + experimental arm64 variant for use with Apple's chips (M1 & M2 Macs, etc). +source_url: https://github.com/CosmWasm/rust-optimizer +author: chadoh +author_url: https://chadoh.com diff --git a/specs/cosmwasm/cosmwasm-optimize-workspace.yaml b/specs/cosmwasm/cosmwasm-optimize-workspace.yaml new file mode 100644 index 00000000..8df5272e --- /dev/null +++ b/specs/cosmwasm/cosmwasm-optimize-workspace.yaml @@ -0,0 +1,15 @@ +--- +name: Optimize CosmWasm Workspace Project +command: > + docker run --rm -v "$(pwd)":/code + --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target + --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry + cosmwasm/workspace-optimizer:0.12.10 +tags: + - cosmwasm +description: > + Optimize a CosmWasm project that is organized as a workspace with multiple + member contracts. Requires Docker to be installed and running. +source_url: https://github.com/CosmWasm/rust-optimizer +author: chadoh +author_url: https://chadoh.com diff --git a/specs/cosmwasm/cosmwasm-optimize.yaml b/specs/cosmwasm/cosmwasm-optimize.yaml new file mode 100644 index 00000000..eaf12cbc --- /dev/null +++ b/specs/cosmwasm/cosmwasm-optimize.yaml @@ -0,0 +1,16 @@ +--- +name: Optimize CosmWasm Project +command: + docker run --rm -v "$(pwd)":/code + --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target + --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry + cosmwasm/rust-optimizer:0.12.10 +tags: + - cosmwasm +description: > + Optimize a CosmWasm smart contract project. If a workspace with multiple + contracts, use workspace-specific version. Requires Docker to be installed + and running. +source_url: https://github.com/CosmWasm/rust-optimizer +author: chadoh +author_url: https://chadoh.com From 3e53009716ad4095342598b53bdc7a3216f394c4 Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Wed, 20 Jul 2022 13:49:17 -0400 Subject: [PATCH 08/77] Creating a clean pr on behalf of wyatt-stanke: https://github.com/warpdotdev/Workflows/pull/54 --- specs/shell/array_append_values.yaml | 19 +++++++++++++++++++ specs/shell/array_create.yaml | 16 ++++++++++++++++ specs/shell/array_get_size.yaml | 16 ++++++++++++++++ specs/shell/array_get_value.yaml | 19 +++++++++++++++++++ specs/shell/array_loop_through.yaml | 19 +++++++++++++++++++ specs/shell/array_set_value.yaml | 22 ++++++++++++++++++++++ 6 files changed, 111 insertions(+) create mode 100644 specs/shell/array_append_values.yaml create mode 100644 specs/shell/array_create.yaml create mode 100644 specs/shell/array_get_size.yaml create mode 100644 specs/shell/array_get_value.yaml create mode 100644 specs/shell/array_loop_through.yaml create mode 100644 specs/shell/array_set_value.yaml diff --git a/specs/shell/array_append_values.yaml b/specs/shell/array_append_values.yaml new file mode 100644 index 00000000..ccc43860 --- /dev/null +++ b/specs/shell/array_append_values.yaml @@ -0,0 +1,19 @@ +-- +name: Append value(s) to an array +command: "{{array_name}}+=({{values}})" +tags: + - shell +description: Loops through an array, running a command on each value. +arguments: + - name: array_name + description: The name of the array to append values + default_value: ~ + - name: values + description: The values to append to the array, space-separated + default_value: ~ +source_url: "https://opensource.com/article/18/5/you-dont-know-bash-intro-bash-arrays" +author: Wyatt-Stanke +author_url: "https://github.com/Wyatt-Stanke" +shells: + - Zsh + - Bash diff --git a/specs/shell/array_create.yaml b/specs/shell/array_create.yaml new file mode 100644 index 00000000..48567633 --- /dev/null +++ b/specs/shell/array_create.yaml @@ -0,0 +1,16 @@ +--- +name: Make a new, empty array +command: "{{array_name}}=()" +tags: + - shell +description: Makes an empty array and assigns it to variable "array_name" +arguments: + - name: array_name + description: The name of the array to create + default_value: ~ +source_url: "https://opensource.com/article/18/5/you-dont-know-bash-intro-bash-arrays" +author: Wyatt-Stanke +author_url: "https://github.com/Wyatt-Stanke" +shells: + - Zsh + - Bash \ No newline at end of file diff --git a/specs/shell/array_get_size.yaml b/specs/shell/array_get_size.yaml new file mode 100644 index 00000000..4712701a --- /dev/null +++ b/specs/shell/array_get_size.yaml @@ -0,0 +1,16 @@ +--- +name: Get number of elements in an array +command: "echo ${#{{array_name}}[@]}" +tags: + - shell +description: Gets the number of elements in an array, and prints it to stdout. +arguments: + - name: array_name + description: The name of the array to get the size of + default_value: ~ +source_url: "https://opensource.com/article/18/5/you-dont-know-bash-intro-bash-arrays" +author: Wyatt-Stanke +author_url: "https://github.com/Wyatt-Stanke" +shells: + - Zsh + - Bash \ No newline at end of file diff --git a/specs/shell/array_get_value.yaml b/specs/shell/array_get_value.yaml new file mode 100644 index 00000000..5c4c59ed --- /dev/null +++ b/specs/shell/array_get_value.yaml @@ -0,0 +1,19 @@ +--- +name: Get a value from an array +command: "echo ${{{array_name}}[{{index}}]}" +tags: + - shell +description: Gets a value from an array and prints it to stdout. +arguments: + - name: array_name + description: The name of the array to get a value from + default_value: ~ + - name: index + description: The index of the value to get (starting at 0) + default_value: ~ +source_url: "https://opensource.com/article/18/5/you-dont-know-bash-intro-bash-arrays" +author: Wyatt-Stanke +author_url: "https://github.com/Wyatt-Stanke" +shells: + - Zsh + - Bash \ No newline at end of file diff --git a/specs/shell/array_loop_through.yaml b/specs/shell/array_loop_through.yaml new file mode 100644 index 00000000..1e62b19b --- /dev/null +++ b/specs/shell/array_loop_through.yaml @@ -0,0 +1,19 @@ +-- +name: Loop through an array and run a command on each value +command: "for i in ${{{array_name}}[@]}; do {{command}}; done" +tags: + - shell +description: Loops through an array, running a command on each value. +arguments: + - name: array_name + description: The name of the array to loop through + default_value: ~ + - name: command + description: The command to run on each value in the array + default_value: ~ +source_url: "https://opensource.com/article/18/5/you-dont-know-bash-intro-bash-arrays" +author: Wyatt-Stanke +author_url: "https://github.com/Wyatt-Stanke" +shells: + - Zsh + - Bash \ No newline at end of file diff --git a/specs/shell/array_set_value.yaml b/specs/shell/array_set_value.yaml new file mode 100644 index 00000000..419309dc --- /dev/null +++ b/specs/shell/array_set_value.yaml @@ -0,0 +1,22 @@ +--- +name: Set an index in an array to a value +command: "{{array_name}}[{{index}}]={{value}}" +tags: + - shell +description: Makes an empty array and assigns it to variable "array_name" +arguments: + - name: array_name + description: The name of the array to set the value + default_value: ~ + - name: array_index + description: The index of the array to set + default_value: ~ + - name: value + description: The value to set the array index to + default_value: ~ +source_url: "https://opensource.com/article/18/5/you-dont-know-bash-intro-bash-arrays" +author: Wyatt-Stanke +author_url: "https://github.com/Wyatt-Stanke" +shells: + - Zsh + - Bash \ No newline at end of file From 886d6150f2d5562ef2f5a18778cc7199cee3f562 Mon Sep 17 00:00:00 2001 From: noah Date: Mon, 3 Oct 2022 10:17:24 -0400 Subject: [PATCH 09/77] Add workflow to find large files with du --- specs/du/find_biggest_files.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 specs/du/find_biggest_files.yml diff --git a/specs/du/find_biggest_files.yml b/specs/du/find_biggest_files.yml new file mode 100644 index 00000000..fd96bdf3 --- /dev/null +++ b/specs/du/find_biggest_files.yml @@ -0,0 +1,20 @@ +--- +# The name of the workflow. +name: Find the largest 10 files in a directory +# The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`. +command: |- + du -ah | sort -hr | head -n 10 +# Any tags that the workflow should be categorized with. +tags: + - du +# A description of the workflow. +description: Uses 'du' command to find file and directory sizes in the current working directory, then sorts by size and displays 10 largest files +# The source URL for where the workflow was generated from, if any. +source_url: "https://linuxhandbook.com/find-biggest-files-linux/" +# The author of the workflow. +author: Christopher Murray +# The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page. +author_url: "https://linuxhandbook.com/find-biggest-files-linux/" +# The valid shells where this workflow should be active. If valid for all shells, this can be left empty. +# See FORMAT.md for the full list of accepted values. +shells: [] From 95d9c67c1ea77b2a95d0b2d63112a3b436a329d8 Mon Sep 17 00:00:00 2001 From: noah Date: Mon, 3 Oct 2022 11:19:41 -0400 Subject: [PATCH 10/77] Add a 'directory' argument --- specs/du/find_biggest_files.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/specs/du/find_biggest_files.yml b/specs/du/find_biggest_files.yml index fd96bdf3..0ff89f01 100644 --- a/specs/du/find_biggest_files.yml +++ b/specs/du/find_biggest_files.yml @@ -3,12 +3,21 @@ name: Find the largest 10 files in a directory # The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`. command: |- - du -ah | sort -hr | head -n 10 + du -ah {{directory}} | sort -hr | head -n 10 # Any tags that the workflow should be categorized with. tags: - du # A description of the workflow. description: Uses 'du' command to find file and directory sizes in the current working directory, then sorts by size and displays 10 largest files +# List of arguments within the command. +arguments: + # Name of the argument within the command. This must exactly match the name of the argument + # within the command (without the curly braces). + - name: directory + # The description of the argument. + description: The name of the directory where you want to find files + # The default value for the argument. + default_value: . # The source URL for where the workflow was generated from, if any. source_url: "https://linuxhandbook.com/find-biggest-files-linux/" # The author of the workflow. From 10746eb4a7f88e14d7c5eae582eb681f1f7333c9 Mon Sep 17 00:00:00 2001 From: noah Date: Thu, 6 Oct 2022 17:34:54 -0400 Subject: [PATCH 11/77] Add a workflow for updating all pip3 packages --- specs/python/update_pip.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 specs/python/update_pip.yml diff --git a/specs/python/update_pip.yml b/specs/python/update_pip.yml new file mode 100644 index 00000000..331606bb --- /dev/null +++ b/specs/python/update_pip.yml @@ -0,0 +1,9 @@ +--- +name: Update all pip3 packages +command: "pip3 list --outdated --format=freeze | cut -d = -f 1 | xargs -n1 pip3 install -U" +tags: ["python"] +description: Update all your pip3 packages in one go. +source_url: "https://gist.github.com/kikulikov/898108545ad3297966111aeacf44def7" +author: Kirill Kulikov +author_url: "https://github.com/kikulikov" +shells: [] From 7e61430011d416bf5221f7bd3c96d0ad7c60e33e Mon Sep 17 00:00:00 2001 From: Connor O'Leary Date: Mon, 19 Sep 2022 13:17:03 -0400 Subject: [PATCH 12/77] adding import_my_sql_dump_with_progress_bar to workflow specs --- .../import_my_sql_dump_with_progress_bar.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 specs/sql/import_my_sql_dump_with_progress_bar.yaml diff --git a/specs/sql/import_my_sql_dump_with_progress_bar.yaml b/specs/sql/import_my_sql_dump_with_progress_bar.yaml new file mode 100644 index 00000000..86a00e69 --- /dev/null +++ b/specs/sql/import_my_sql_dump_with_progress_bar.yaml @@ -0,0 +1,20 @@ +--- +name: Import a MySQL dump with progress bar into a MySQL server +command: "pv {{mysql_dump_path}} | mysql -u {{username}} -p {{database_name}}" +tags: + - mysql +description: Import a mysqldump file into a MySQL server with a progress bar indicating time remaining +arguments: + - name: username + description: The user to connect to the MySQL server as + default_value: ~ + - name: database_name + description: The name of the database to import the dump into + default_value: ~ + - name: mysql_dump_path + description: The filepath to the .sql dump file + default_value: ~ +source_url: "https://dba.stackexchange.com/questions/17367/how-can-i-monitor-the-progress-of-an-import-of-a-large-sql-file" +author: Coleary005 +author_url: "https://connoroleary.com" +shells: [] From e9b359f7cf1bbbf0d7d5382f4935ffd3bd24c10d Mon Sep 17 00:00:00 2001 From: Connor O'Leary Date: Mon, 19 Sep 2022 13:33:53 -0400 Subject: [PATCH 13/77] changing the author and url to be more appropriate --- specs/sql/import_my_sql_dump_with_progress_bar.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/sql/import_my_sql_dump_with_progress_bar.yaml b/specs/sql/import_my_sql_dump_with_progress_bar.yaml index 86a00e69..eec6fd9d 100644 --- a/specs/sql/import_my_sql_dump_with_progress_bar.yaml +++ b/specs/sql/import_my_sql_dump_with_progress_bar.yaml @@ -15,6 +15,6 @@ arguments: description: The filepath to the .sql dump file default_value: ~ source_url: "https://dba.stackexchange.com/questions/17367/how-can-i-monitor-the-progress-of-an-import-of-a-large-sql-file" -author: Coleary005 -author_url: "https://connoroleary.com" +author: Rob +author_url: "https://dba.stackexchange.com/users/15321/rob" shells: [] From 29a4eeea94f7ae99cd560b3050b18c759ee0412b Mon Sep 17 00:00:00 2001 From: leon Date: Thu, 13 Oct 2022 12:11:04 +0800 Subject: [PATCH 14/77] feat:compress subdirectories under folder workflow --- .../compress_subdirectories_under_folder.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 specs/zip/compress_subdirectories_under_folder.yaml diff --git a/specs/zip/compress_subdirectories_under_folder.yaml b/specs/zip/compress_subdirectories_under_folder.yaml new file mode 100644 index 00000000..650d40e3 --- /dev/null +++ b/specs/zip/compress_subdirectories_under_folder.yaml @@ -0,0 +1,21 @@ +--- +name: Use zip to compress all subdirectories under a folder and output each directory as a zip file. +command: "for dir in $(ls -d {{directory}}*/); do (zip -r -q {{output}}$(basename $dir){{zip_name_endwith}}.zip $dir && echo -e \"Compressed to {{output}}$(basename $dir){{zip_name_endwith}}.zip.\"); done" +tags: + - zip +description: Use zip to compress all subdirectories under a folder and output each directory as a zip file. +arguments: + - name: directory + description: The directory to execute. + default_value: ./ + - name: output + description: The output directory of the zip file. Optional, defaults to the current directory. + default_value: ./ + - name: zip_name_endwith + description: Endwith string of each zip file name Optional, the default time string. + default_value: _$(date +%Y%m%d%H%M%S) +source_url: "https://linuxhint.com/what-is-zip-file/" +author: funnyzak +author_url: "https://github.com/funnyzak" +shells: + - Bash \ No newline at end of file From 3bbe2e5bd800fc6b8f3c4e7a5dab2ecce5163705 Mon Sep 17 00:00:00 2001 From: leon Date: Thu, 13 Oct 2022 14:26:13 +0800 Subject: [PATCH 15/77] refactor: zip work flow --- .../compress_subdirectories_under_folder.yaml | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/specs/zip/compress_subdirectories_under_folder.yaml b/specs/zip/compress_subdirectories_under_folder.yaml index 650d40e3..291be951 100644 --- a/specs/zip/compress_subdirectories_under_folder.yaml +++ b/specs/zip/compress_subdirectories_under_folder.yaml @@ -1,20 +1,26 @@ --- -name: Use zip to compress all subdirectories under a folder and output each directory as a zip file. -command: "for dir in $(ls -d {{directory}}*/); do (zip -r -q {{output}}$(basename $dir){{zip_name_endwith}}.zip $dir && echo -e \"Compressed to {{output}}$(basename $dir){{zip_name_endwith}}.zip.\"); done" +name: Compression all subdirectories and output each directory as a zip file. +command: "for dir in $(ls -d {{directory}}*/); do (zip -r {{opitons}} {{output}}$(basename $dir){{name_with_str}}.zip ${dir}{{zip_pattern}} && echo -e \"Compressed to {{output}}$(basename $dir){{name_with_str}}.zip.\"); done" tags: - zip description: Use zip to compress all subdirectories under a folder and output each directory as a zip file. arguments: - name: directory - description: The directory to execute. + description: Optional, The directory to execute. default is current directory. default_value: ./ + - name: opitons + description: Optional, The options of zip command. + default_value: -q + - name: zip_pattern + description: Optional, The pattern of match the files under each subdirectory to be compressed. + default_value: '*' - name: output - description: The output directory of the zip file. Optional, defaults to the current directory. + description: Optional, The output directory of the zip files. default is the current directory. default_value: ./ - - name: zip_name_endwith - description: Endwith string of each zip file name Optional, the default time string. + - name: name_with_str + description: Optional, Endwith string of each zip file name. default is now time string. default_value: _$(date +%Y%m%d%H%M%S) -source_url: "https://linuxhint.com/what-is-zip-file/" +source_url: "https://www.geeksforgeeks.org/zip-command-in-linux-with-examples/" author: funnyzak author_url: "https://github.com/funnyzak" shells: From d0b70735d5e169c2a761f657ad6a75f54fc02503 Mon Sep 17 00:00:00 2001 From: Dmirtii Otstavnov Date: Sun, 13 Nov 2022 14:38:50 +0600 Subject: [PATCH 16/77] Add ffprobe workflow --- specs/ffmpeg/ffprobe_streams_json.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 specs/ffmpeg/ffprobe_streams_json.yaml diff --git a/specs/ffmpeg/ffprobe_streams_json.yaml b/specs/ffmpeg/ffprobe_streams_json.yaml new file mode 100644 index 00000000..d5f24b4b --- /dev/null +++ b/specs/ffmpeg/ffprobe_streams_json.yaml @@ -0,0 +1,13 @@ +--- +name: FFprobe file in json +command: ffprobe -i {{media_file_path}} -show_streams -show_format -print_format json +tags: + - ffprobe +description: Show streams and format of media file in json format using ffprobe +arguments: + - name: media_file_path + description: Path of media file (may be local file path, http url or some other protocols described at https://ffmpeg.org/ffmpeg-protocols.html#Protocols) +source_url: "https://ffmpeg.org/ffprobe.html" +author: tabroot +author_url: "https://github.com/bvc3at" +shells: [] From 2ba63f945d1a7e5f68de341837192275c9af4889 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Tue, 22 Nov 2022 09:34:38 +0800 Subject: [PATCH 17/77] Fix typos Found via `typos --format brief` --- .../android/push_deeplink_onto_android_device.yaml | 2 +- specs/android/send_firebase_push_notification.yaml | 2 +- ...l_a_specific_version_of_a_homebrew_formula.yaml | 4 ++-- ...sively_find_and_replace_within_a_directory.yaml | 2 +- .../sort_a_file_by_line_length.yaml | 2 +- .../git/modify_the_most_recent_commit_message.yaml | 2 +- specs/git/squash_last_n_commits_together.yaml | 2 +- specs/git/undo_git_add.yaml | 2 +- specs/shell/chain_commands_together_pipe.yaml | 2 +- ...rom-mysql-database-to-postgresql-database.yaml} | 14 +++++++------- .../generate_a_self_signed_ssl_certificate.yaml | 2 +- 11 files changed, 18 insertions(+), 18 deletions(-) rename specs/sql/{migrate-from-mysql-database-to-postgressql-database.yaml => migrate-from-mysql-database-to-postgresql-database.yaml} (72%) diff --git a/specs/android/push_deeplink_onto_android_device.yaml b/specs/android/push_deeplink_onto_android_device.yaml index fce660c3..0969de1e 100644 --- a/specs/android/push_deeplink_onto_android_device.yaml +++ b/specs/android/push_deeplink_onto_android_device.yaml @@ -9,7 +9,7 @@ tags: description: Uses adb to push a deeplink onto an Android device. arguments: - name: your_app_package_name - description: The package name of the app that you want to recieve the deeplink. + description: The package name of the app that you want to receive the deeplink. default_value: com.my.app.package - name: deeplink description: The deeplink you want to send (eg. `app://open.my.app`) diff --git a/specs/android/send_firebase_push_notification.yaml b/specs/android/send_firebase_push_notification.yaml index ff1f2c4f..94934dca 100644 --- a/specs/android/send_firebase_push_notification.yaml +++ b/specs/android/send_firebase_push_notification.yaml @@ -13,7 +13,7 @@ tags: description: Uses adb to push a Firebase push notification to your local emulator arguments: - name: your_app_package_name - description: The package name of the app that you want to recieve the notification. It has to have implemented the reciever for it to work. + description: The package name of the app that you want to receive the notification. It has to have implemented the receiver for it to work. default_value: com.my.app.package - name: notification_title description: The title of the notification diff --git a/specs/brew/install_a_specific_version_of_a_homebrew_formula.yaml b/specs/brew/install_a_specific_version_of_a_homebrew_formula.yaml index 9d864c3e..c5d24856 100644 --- a/specs/brew/install_a_specific_version_of_a_homebrew_formula.yaml +++ b/specs/brew/install_a_specific_version_of_a_homebrew_formula.yaml @@ -6,10 +6,10 @@ tags: description: "Install a specific version of a formula using Homebrew. To list all available versions, you can run `brew search {{formula_name}}@`." arguments: - name: formula_name - description: The fomula to install + description: The formula to install default_value: ~ - name: version_name - description: "The version of the formula to install. You can ensure this version is availalble on homebrew by running `brew search {{formula_name}}`" + description: "The version of the formula to install. You can ensure this version is available on homebrew by running `brew search {{formula_name}}`" default_value: ~ source_url: "https://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula" author: Debilski diff --git a/specs/file_manipulation/recursively_find_and_replace_within_a_directory.yaml b/specs/file_manipulation/recursively_find_and_replace_within_a_directory.yaml index 53c81a88..cc7014d4 100644 --- a/specs/file_manipulation/recursively_find_and_replace_within_a_directory.yaml +++ b/specs/file_manipulation/recursively_find_and_replace_within_a_directory.yaml @@ -5,7 +5,7 @@ tags: - file manipulation - sed - grep -description: Replaces all occurences of a string recursively within a directory +description: Replaces all occurrences of a string recursively within a directory arguments: - name: old_text description: The text that should be replaced diff --git a/specs/file_manipulation/sort_a_file_by_line_length.yaml b/specs/file_manipulation/sort_a_file_by_line_length.yaml index 6b763f51..bf6de73b 100644 --- a/specs/file_manipulation/sort_a_file_by_line_length.yaml +++ b/specs/file_manipulation/sort_a_file_by_line_length.yaml @@ -4,7 +4,7 @@ command: "cat {{file_name}} | awk '{ print length, $0 }' | sort -n -s | cut -d\" tags: - file manipulation - awk -description: "Sorts a text file by line length (including spaces). The `-s` flag indicates that any lines that are the same length are kept in the relative order that they ocurred in the input." +description: "Sorts a text file by line length (including spaces). The `-s` flag indicates that any lines that are the same length are kept in the relative order that they occurred in the input." arguments: - name: file_name description: The name of the file to sort. diff --git a/specs/git/modify_the_most_recent_commit_message.yaml b/specs/git/modify_the_most_recent_commit_message.yaml index 2ba675e0..4f55a29e 100644 --- a/specs/git/modify_the_most_recent_commit_message.yaml +++ b/specs/git/modify_the_most_recent_commit_message.yaml @@ -3,7 +3,7 @@ name: Modify the most recent commit message command: "git commit --amend -m \"{{new_commit_message}}\"" tags: - git -description: "Ammends the most recent git commit with a new message. This will not update the commit on a remote branch unless you force push the branch," +description: "Amends the most recent git commit with a new message. This will not update the commit on a remote branch unless you force push the branch," arguments: - name: new_commit_message description: The new commit message diff --git a/specs/git/squash_last_n_commits_together.yaml b/specs/git/squash_last_n_commits_together.yaml index 7efa7005..e39d8f33 100644 --- a/specs/git/squash_last_n_commits_together.yaml +++ b/specs/git/squash_last_n_commits_together.yaml @@ -3,7 +3,7 @@ name: Squash last n commits together command: "git reset --soft HEAD~{{num_commits}} && git commit" tags: - git -description: "Squashes the last n commits together. This approach requires rewriting a commit message for the new sqashed changes, unlike running `git rebase`." +description: "Squashes the last n commits together. This approach requires rewriting a commit message for the new squashed changes, unlike running `git rebase`." arguments: - name: num_commits description: The number of commits that should be squashed together diff --git a/specs/git/undo_git_add.yaml b/specs/git/undo_git_add.yaml index 76f5df5c..1acd2145 100644 --- a/specs/git/undo_git_add.yaml +++ b/specs/git/undo_git_add.yaml @@ -3,7 +3,7 @@ name: Undo git add command: "git reset {{file}}" tags: - git -description: "Removes a file that was staged for commit by `git add`. Executing `git reset` withou any file name will unstage all changes." +description: "Removes a file that was staged for commit by `git add`. Executing `git reset` without any file name will unstage all changes." arguments: - name: file description: The file to unstage diff --git a/specs/shell/chain_commands_together_pipe.yaml b/specs/shell/chain_commands_together_pipe.yaml index acbd503e..4cb793d4 100644 --- a/specs/shell/chain_commands_together_pipe.yaml +++ b/specs/shell/chain_commands_together_pipe.yaml @@ -3,7 +3,7 @@ name: Chain commands together by forwarding output as input to the next command command: "{{command_1}} | {{command_2}}" tags: - shell -description: Executs command_1 and passes the output as input to command_2 +description: Executes command_1 and passes the output as input to command_2 arguments: - name: command_1 description: The first command to run (whose output will be passed to the second command) diff --git a/specs/sql/migrate-from-mysql-database-to-postgressql-database.yaml b/specs/sql/migrate-from-mysql-database-to-postgresql-database.yaml similarity index 72% rename from specs/sql/migrate-from-mysql-database-to-postgressql-database.yaml rename to specs/sql/migrate-from-mysql-database-to-postgresql-database.yaml index 97c13664..1ce24cc9 100644 --- a/specs/sql/migrate-from-mysql-database-to-postgressql-database.yaml +++ b/specs/sql/migrate-from-mysql-database-to-postgresql-database.yaml @@ -4,7 +4,7 @@ command: "pgloader mysql://{{mysql_username}}:{{mysql_password}}@{{mysql_hostnam tags: - postgresql - mysql -description: Loads data from the MySQL database, transforms it to PostgresSQL compatible format and uploads it to the PostgresSQL database. Note - it requires pgloader to be installed and both PostgresSQL and MySQL hosts are accessible from the machine running this script. +description: Loads data from the MySQL database, transforms it to PostgreSQL compatible format and uploads it to the PostgreSQL database. Note - it requires pgloader to be installed and both PostgreSQL and MySQL hosts are accessible from the machine running this script. arguments: - name: mysql_username description: The username for the MySQL database. @@ -22,21 +22,21 @@ arguments: description: The name of the MySQL database. default_value: ~ - name: postgres_username - description: The username for the Postgres database. + description: The username for the PostgreSQL database. default_value: ~ - name: postgres_password - description: The password for the Postgres database. + description: The password for the PostgreSQL database. default_value: ~ - name: postgres_hostname - description: The hostname for the Postgres database. + description: The hostname for the PostgreSQL database. default_value: ~ - name: postgres_port - description: The port for the Postgres database. + description: The port for the PostgreSQL database. default_value: 5432 - name: postgres_database_name - description: The name of the Postgres database. + description: The name of the PostgreSQL database. default_value: ~ source_url: "https://docs.dipak.tech/database/postgres/postgres-migration" author: Dipak Parmar author_url: "https://github.com/dipakparmar" -shells: [] \ No newline at end of file +shells: [] diff --git a/specs/ssl/generate_a_self_signed_ssl_certificate.yaml b/specs/ssl/generate_a_self_signed_ssl_certificate.yaml index 4c7ab935..12375f80 100644 --- a/specs/ssl/generate_a_self_signed_ssl_certificate.yaml +++ b/specs/ssl/generate_a_self_signed_ssl_certificate.yaml @@ -4,7 +4,7 @@ command: "openssl req -x509 -newkey rsa:4096 -keyout {{key_file}} -out {{cert_fi tags: - ssl - openssl -description: "Generates a self-signed SSL certificate using OpenSSL. Beware, self-signed certificates are typically not validated with any third party. It's recommended to use a certificate signed by a certifiate authority." +description: "Generates a self-signed SSL certificate using OpenSSL. Beware, self-signed certificates are typically not validated with any third party. It's recommended to use a certificate signed by a certificate authority." arguments: - name: key_file description: ~ From 8e600e2c1ab5aca6af4aaef31906c8b127d31230 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 27 Dec 2022 20:23:24 +0000 Subject: [PATCH 18/77] =?UTF-8?q?=E2=AD=90=20Added=20laravel's=20official?= =?UTF-8?q?=20installer=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- specs/laravel/laravel_installer.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 specs/laravel/laravel_installer.yml diff --git a/specs/laravel/laravel_installer.yml b/specs/laravel/laravel_installer.yml new file mode 100644 index 00000000..d824ca87 --- /dev/null +++ b/specs/laravel/laravel_installer.yml @@ -0,0 +1,14 @@ +--- +name: Installing Laravel Installer +command: |- + composer global require laravel/installer +tags: + - composer + - laravel + - php +description: Install Laravel Installer +arguments: [] +source_url: "https://laravel.com/docs/5.4/installation" +author: Charles Adu Boakye +author_url: "https://www.linkedin.com/in/charles-adu-boakye/" +shells: [] From b692ce383b5b6f35a9ab8636b2a46c1eda1f1a6d Mon Sep 17 00:00:00 2001 From: svarainis450 Date: Mon, 2 Jan 2023 22:00:19 +0200 Subject: [PATCH 19/77] workflow: added Next.JS workflow --- specs/nextjs/create_next_app.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 specs/nextjs/create_next_app.yaml diff --git a/specs/nextjs/create_next_app.yaml b/specs/nextjs/create_next_app.yaml new file mode 100644 index 00000000..93ec0bd5 --- /dev/null +++ b/specs/nextjs/create_next_app.yaml @@ -0,0 +1,18 @@ +--- +name: Create Next.JS app +command: npx create-next-app {{project_name}} --use-{{package_manager}} +tags: + - react + - nextjs +arguments: + - name: project_name + description: Project name + default_value: my-app + - name: package_manager + 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 +author: Lukas Varkalis +author_url: https://github.com/lukasvarkalis +shells: [] From f721e10c8539758b639a5d18e6bb687dc5d4c180 Mon Sep 17 00:00:00 2001 From: Aloke Desai Date: Fri, 13 Jan 2023 17:44:08 -0500 Subject: [PATCH 20/77] fix CI --- specs/turborepo/workflows/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/turborepo/workflows/build.rs b/specs/turborepo/workflows/build.rs index eb3bc721..9a5e5f84 100644 --- a/specs/turborepo/workflows/build.rs +++ b/specs/turborepo/workflows/build.rs @@ -103,7 +103,7 @@ fn write_workflows_function( /// } /// ``` fn write_workflow(workflow: Workflow, file_name: &str) -> Result<()> { - let module = std::fs::File::create(&format!("src/generated_workflows/{}.rs", file_name))?; + let module = std::fs::File::create(format!("src/generated_workflows/{}.rs", file_name))?; writeln!(&module, "use warp_workflows_types::*;")?; writeln!(&module, r#"pub fn workflow() -> Workflow {{"#)?; From 7a0b8a26fbba5bbfc3c18512ead83e04d2d2422f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Jakutowicz?= Date: Thu, 10 Nov 2022 17:56:27 +0100 Subject: [PATCH 21/77] Add Symfony specs --- specs/symfony/.... | 4 ++++ specs/symfony/symfony_check_requirements.yml | 12 ++++++++++++ specs/symfony/symfony_check_security.yml | 12 ++++++++++++ specs/symfony/symfony_create_new_project.yml | 15 +++++++++++++++ specs/symfony/symfony_server_start.yml | 12 ++++++++++++ 5 files changed, 55 insertions(+) create mode 100644 specs/symfony/.... create mode 100644 specs/symfony/symfony_check_requirements.yml create mode 100644 specs/symfony/symfony_check_security.yml create mode 100644 specs/symfony/symfony_create_new_project.yml create mode 100644 specs/symfony/symfony_server_start.yml diff --git a/specs/symfony/.... b/specs/symfony/.... new file mode 100644 index 00000000..73d2d85c --- /dev/null +++ b/specs/symfony/.... @@ -0,0 +1,4 @@ + + + +cd diff --git a/specs/symfony/symfony_check_requirements.yml b/specs/symfony/symfony_check_requirements.yml new file mode 100644 index 00000000..1fbd13bd --- /dev/null +++ b/specs/symfony/symfony_check_requirements.yml @@ -0,0 +1,12 @@ +--- +name: Check all the requirements to develop and run Symfony application locally +command: symfony check:requirements +tags: + - symfony + - php +description: Check all the tools you need to develop and run your Symfony application locally +arguments: [] +source_url: "https://symfony.com/doc/current/setup.html#technical-requirements" +author: Łukasz Jakutowicz +author_url: "https://github.com/lukaszjakutowicz" +shells: [] diff --git a/specs/symfony/symfony_check_security.yml b/specs/symfony/symfony_check_security.yml new file mode 100644 index 00000000..291b3a58 --- /dev/null +++ b/specs/symfony/symfony_check_security.yml @@ -0,0 +1,12 @@ +--- +name: Check security issues in Symfony project dependencies +command: symfony check:security +tags: + - symfony + - php +description: Check security issues in Symfony project dependencies +arguments: [] +source_url: "https://symfony.com/doc/current/setup.html#checking-security-vulnerabilities" +author: Łukasz Jakutowicz +author_url: "https://github.com/lukaszjakutowicz" +shells: [] diff --git a/specs/symfony/symfony_create_new_project.yml b/specs/symfony/symfony_create_new_project.yml new file mode 100644 index 00000000..74067164 --- /dev/null +++ b/specs/symfony/symfony_create_new_project.yml @@ -0,0 +1,15 @@ +--- +name: Create a new Symfony project +command: "symfony new {{project_name}}" +tags: + - symfony + - php +description: Create a new Symfony project +arguments: + - name: project_name + description: Name of project + default_value: my-app +source_url: "https://symfony.com/doc/current/setup.html#creating-symfony-applications" +author: Łukasz Jakutowicz +author_url: "https://github.com/lukaszjakutowicz" +shells: [] diff --git a/specs/symfony/symfony_server_start.yml b/specs/symfony/symfony_server_start.yml new file mode 100644 index 00000000..806be889 --- /dev/null +++ b/specs/symfony/symfony_server_start.yml @@ -0,0 +1,12 @@ +--- +name: Start Symfony local web server +command: symfony server:start +tags: + - symfony + - php +description: Start Symfony local web server +arguments: [] +source_url: "https://symfony.com/doc/current/setup/symfony_server.html" +author: Łukasz Jakutowicz +author_url: "https://github.com/lukaszjakutowicz" +shells: [] From afa98facd86b705b99057a6b98c32a78213a726f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Jakutowicz?= Date: Thu, 10 Nov 2022 18:08:30 +0100 Subject: [PATCH 22/77] Remove unnecessary file --- specs/symfony/.... | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 specs/symfony/.... diff --git a/specs/symfony/.... b/specs/symfony/.... deleted file mode 100644 index 73d2d85c..00000000 --- a/specs/symfony/.... +++ /dev/null @@ -1,4 +0,0 @@ - - - -cd From 23ebadfffe04299d6493df16b13c42dd91fdb158 Mon Sep 17 00:00:00 2001 From: Youri Wijnands Date: Mon, 21 Nov 2022 09:30:18 +0100 Subject: [PATCH 23/77] Fix description on Laravel Nova workflow --- specs/laravel/laravel_install_nova.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/laravel/laravel_install_nova.yml b/specs/laravel/laravel_install_nova.yml index f9a3dfed..8ae99251 100644 --- a/specs/laravel/laravel_install_nova.yml +++ b/specs/laravel/laravel_install_nova.yml @@ -1,11 +1,11 @@ --- -name: Install Laravel Sail using Composer +name: Install Laravel Nova using Composer command: 'composer config repositories.nova ''{"type": "composer", "url": "https://nova.laravel.com"}'' --file composer.json && composer require laravel/nova && composer update --prefer-dist' tags: - composer - laravel - php -description: Install Laravel Sail using Composer +description: Install Laravel Nova using Composer arguments: [] source_url: "https://nova.laravel.com/docs/4.0/installation.html" author: Rob Mellett From d47d082c33e5f02d9ab9f188ac8a0b1f98cae583 Mon Sep 17 00:00:00 2001 From: Aloke Desai Date: Fri, 13 Jan 2023 18:18:39 -0500 Subject: [PATCH 24/77] add an extra dash to fix issue --- specs/shell/array_append_values.yaml | 2 +- specs/shell/array_loop_through.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/shell/array_append_values.yaml b/specs/shell/array_append_values.yaml index ccc43860..e7c137d9 100644 --- a/specs/shell/array_append_values.yaml +++ b/specs/shell/array_append_values.yaml @@ -1,4 +1,4 @@ --- +--- name: Append value(s) to an array command: "{{array_name}}+=({{values}})" tags: diff --git a/specs/shell/array_loop_through.yaml b/specs/shell/array_loop_through.yaml index 1e62b19b..dfe6cccb 100644 --- a/specs/shell/array_loop_through.yaml +++ b/specs/shell/array_loop_through.yaml @@ -1,4 +1,4 @@ --- +--- name: Loop through an array and run a command on each value command: "for i in ${{{array_name}}[@]}; do {{command}}; done" tags: From 2e004ba324a9a7d18aa04b29d1190efa9b1e74bd Mon Sep 17 00:00:00 2001 From: Automated Version Bump Date: Fri, 13 Jan 2023 23:38:06 +0000 Subject: [PATCH 25/77] ci: version bump to 1.0.9 --- build_ts/package-lock.json | 4 ++-- build_ts/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build_ts/package-lock.json b/build_ts/package-lock.json index 85b8efe8..0c0153fb 100644 --- a/build_ts/package-lock.json +++ b/build_ts/package-lock.json @@ -1,12 +1,12 @@ { "name": "warp-workflows", - "version": "1.0.8", + "version": "1.0.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "warp-workflows", - "version": "1.0.8", + "version": "1.0.9", "license": "MIT", "devDependencies": { "@types/webpack-env": "^1.16.3", diff --git a/build_ts/package.json b/build_ts/package.json index 96e1c584..ea47d7b4 100644 --- a/build_ts/package.json +++ b/build_ts/package.json @@ -1,6 +1,6 @@ { "name": "warp-workflows", - "version": "1.0.8", + "version": "1.0.9", "description": "Workflows used within Warp", "main": "dist/warp-workflows.js", "types": "dist/index.d.ts", From e5b5babd7f9267d1e71616825bb755c0c911e115 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 07:58:02 +0000 Subject: [PATCH 26/77] Optimize Laravel Framework --- specs/laravel/laravel_optimize.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 specs/laravel/laravel_optimize.yml diff --git a/specs/laravel/laravel_optimize.yml b/specs/laravel/laravel_optimize.yml new file mode 100644 index 00000000..677b250c --- /dev/null +++ b/specs/laravel/laravel_optimize.yml @@ -0,0 +1,13 @@ +--- +name: Optimize Laravel Framework +command: |- + php artisan optimize +tags: + - php + - laravel +description: Cache the framework bootstrap files +arguments: [] +source_url: "https://artisan.page/#optimize" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From 1fc3430459bb4c55801331b85fbe5fc27f4f5ce1 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 08:24:44 +0000 Subject: [PATCH 27/77] Laravel maintenance down mode added --- specs/laravel/laravel_maintenance_down.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 specs/laravel/laravel_maintenance_down.yml diff --git a/specs/laravel/laravel_maintenance_down.yml b/specs/laravel/laravel_maintenance_down.yml new file mode 100644 index 00000000..ce65763e --- /dev/null +++ b/specs/laravel/laravel_maintenance_down.yml @@ -0,0 +1,13 @@ +--- +name: Enable Laravel maintenance mode +command: |- + php artisan down +tags: + - Laravel + - Php +description: This command enables maintenance mode in your laravel application +arguments: [] +source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From db8bfb2720e84b8d5d5ec8ff4677902028da3d1f Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 08:33:39 +0000 Subject: [PATCH 28/77] Refresh laravel maintenance mode added --- specs/laravel/laravel_maintenance_refresh.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 specs/laravel/laravel_maintenance_refresh.yml diff --git a/specs/laravel/laravel_maintenance_refresh.yml b/specs/laravel/laravel_maintenance_refresh.yml new file mode 100644 index 00000000..95c5035b --- /dev/null +++ b/specs/laravel/laravel_maintenance_refresh.yml @@ -0,0 +1,16 @@ +--- +name: Automatically refresh Laravel maintenance mode +command: |- + php artisan down --refresh={{refresh_duration}} +tags: + - laravel + - php +description: Refresh Laravel maintenance mode automatically after the specified number of seconds is due. +arguments: + - name: refresh_duration + description: Specify the number of seconds the page should be refreshed. + default_value: ~ +source_url: "https://laravel.com/docs/5.4/installation" +author: Charles Adu Boakye +author_url: "https://www.linkedin.com/in/charles-adu-boakye/" +shells: [] \ No newline at end of file From 4d9dd269cc451d42c45e3d384d8783c8912b6e2d Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 08:38:39 +0000 Subject: [PATCH 29/77] Updated source url and author url --- specs/laravel/laravel_maintenance_refresh.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/laravel/laravel_maintenance_refresh.yml b/specs/laravel/laravel_maintenance_refresh.yml index 95c5035b..bf638ef8 100644 --- a/specs/laravel/laravel_maintenance_refresh.yml +++ b/specs/laravel/laravel_maintenance_refresh.yml @@ -10,7 +10,7 @@ arguments: - name: refresh_duration description: Specify the number of seconds the page should be refreshed. default_value: ~ -source_url: "https://laravel.com/docs/5.4/installation" +source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" author: Charles Adu Boakye -author_url: "https://www.linkedin.com/in/charles-adu-boakye/" +author_url: "https://github.com/4cyberlord" shells: [] \ No newline at end of file From 68b8220334e03ba4e2c8569884d12940836947e7 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 08:42:15 +0000 Subject: [PATCH 30/77] Bypass laravel maintenance mode --- specs/laravel/laravel_maintenance_mode_bypass.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 specs/laravel/laravel_maintenance_mode_bypass.yml diff --git a/specs/laravel/laravel_maintenance_mode_bypass.yml b/specs/laravel/laravel_maintenance_mode_bypass.yml new file mode 100644 index 00000000..af233fcb --- /dev/null +++ b/specs/laravel/laravel_maintenance_mode_bypass.yml @@ -0,0 +1,13 @@ +--- +name: Bypass laravel maintenance mode +command: |- + php artisan down --secret="{{bypass_secret_key}}" +tags: + - laravel + - php +description: This command helps you bypass laravel maintenance mode by setting the secret key. +arguments: [] +source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From 72fb26deae26a3e9c8761ca7da561373f3821db3 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 08:47:09 +0000 Subject: [PATCH 31/77] Updated argments values --- specs/laravel/laravel_maintenance_mode_bypass.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/specs/laravel/laravel_maintenance_mode_bypass.yml b/specs/laravel/laravel_maintenance_mode_bypass.yml index af233fcb..0efc3a50 100644 --- a/specs/laravel/laravel_maintenance_mode_bypass.yml +++ b/specs/laravel/laravel_maintenance_mode_bypass.yml @@ -6,7 +6,10 @@ tags: - laravel - php description: This command helps you bypass laravel maintenance mode by setting the secret key. -arguments: [] +arguments: + - name: bypass_secret_key + description: Enter your laravel application key to bypass maintenance mode. + default_value: ~ source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" From 3587242283fe56bd089fbf6f4afa6c730cd1d299 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 08:50:17 +0000 Subject: [PATCH 32/77] Redirect laravel maintenance mode added --- .../laravel_maintenance_mode_redirect.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 specs/laravel/laravel_maintenance_mode_redirect.yml diff --git a/specs/laravel/laravel_maintenance_mode_redirect.yml b/specs/laravel/laravel_maintenance_mode_redirect.yml new file mode 100644 index 00000000..22cdf236 --- /dev/null +++ b/specs/laravel/laravel_maintenance_mode_redirect.yml @@ -0,0 +1,16 @@ +--- +name: Redirect laravel maintenance mode +command: |- + php artisan down --redirect={{URI}} +tags: + - laravel + - php +description: This command helps you redirect laravel maintenance mode by setting the secret key. +arguments: + - name: URI + description: Specify the URI to redirect laravel maintenance mode + default_value: / +source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From 193d283a973320f097a21b9f7ea1ac8776631c24 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 08:53:40 +0000 Subject: [PATCH 33/77] Deactivate laravel maintenance mode --- specs/laravel/laravel_maintenance_mode_disabled.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_maintenance_mode_disabled.yml diff --git a/specs/laravel/laravel_maintenance_mode_disabled.yml b/specs/laravel/laravel_maintenance_mode_disabled.yml new file mode 100644 index 00000000..f3bbe53d --- /dev/null +++ b/specs/laravel/laravel_maintenance_mode_disabled.yml @@ -0,0 +1,12 @@ +--- +name: Laravel maintenance mode disabled +command: |- + php artisan up +tags: + - laravel + - php +description: Disable laravel maintenance mode +source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From 916cc75b54529e02d89204ce27ea2ade5acf5d93 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 08:56:30 +0000 Subject: [PATCH 34/77] Encrypt Laravel environment file --- specs/laravel/laravel_encrypt.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_encrypt.yml diff --git a/specs/laravel/laravel_encrypt.yml b/specs/laravel/laravel_encrypt.yml new file mode 100644 index 00000000..940fb8f4 --- /dev/null +++ b/specs/laravel/laravel_encrypt.yml @@ -0,0 +1,12 @@ +--- +name: Encrypt Laravel environment file +command: |- + php artisan env:encrypt +tags: + - laravel + - php +description: command to encrypt Laravel environment file +source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From 4bb5118580680fa0903d6e14b54f9f9878fd7b55 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:07:53 +0000 Subject: [PATCH 35/77] Custom encrypt laravel environment file --- specs/laravel/laravel_custom_encrypt_key.yml | 16 ++++++++++++++++ specs/laravel/laravel_encrypt.yml | 2 +- .../laravel/laravel_maintenance_mode_bypass.yml | 5 +---- specs/laravel/laravel_maintenance_refresh.yml | 4 ++-- specs/laravel/laravel_optimize.yml | 2 +- 5 files changed, 21 insertions(+), 8 deletions(-) create mode 100644 specs/laravel/laravel_custom_encrypt_key.yml diff --git a/specs/laravel/laravel_custom_encrypt_key.yml b/specs/laravel/laravel_custom_encrypt_key.yml new file mode 100644 index 00000000..926cc7ae --- /dev/null +++ b/specs/laravel/laravel_custom_encrypt_key.yml @@ -0,0 +1,16 @@ +--- +name: Encrypt Laravel environment file with custom encryption key +command: |- + php artisan env:encrypt --key={{custom_key}} +tags: + - laravel + - php +description: command to encrypt your Laravel environment file with custom encryption key +arguments: + - name: custom_key + description: Specify custom encryption key for Laravel environment file. + default_value: ~ +source_url: "https://laravel.com/docs/9.x/configuration#encrypting-environment-files" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file diff --git a/specs/laravel/laravel_encrypt.yml b/specs/laravel/laravel_encrypt.yml index 940fb8f4..bfebac64 100644 --- a/specs/laravel/laravel_encrypt.yml +++ b/specs/laravel/laravel_encrypt.yml @@ -6,7 +6,7 @@ tags: - laravel - php description: command to encrypt Laravel environment file -source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" +source_url: "https://laravel.com/docs/9.x/configuration#encrypting-environment-files" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" shells: [] \ No newline at end of file diff --git a/specs/laravel/laravel_maintenance_mode_bypass.yml b/specs/laravel/laravel_maintenance_mode_bypass.yml index 0efc3a50..af233fcb 100644 --- a/specs/laravel/laravel_maintenance_mode_bypass.yml +++ b/specs/laravel/laravel_maintenance_mode_bypass.yml @@ -6,10 +6,7 @@ tags: - laravel - php description: This command helps you bypass laravel maintenance mode by setting the secret key. -arguments: - - name: bypass_secret_key - description: Enter your laravel application key to bypass maintenance mode. - default_value: ~ +arguments: [] source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" diff --git a/specs/laravel/laravel_maintenance_refresh.yml b/specs/laravel/laravel_maintenance_refresh.yml index bf638ef8..95c5035b 100644 --- a/specs/laravel/laravel_maintenance_refresh.yml +++ b/specs/laravel/laravel_maintenance_refresh.yml @@ -10,7 +10,7 @@ arguments: - name: refresh_duration description: Specify the number of seconds the page should be refreshed. default_value: ~ -source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" +source_url: "https://laravel.com/docs/5.4/installation" author: Charles Adu Boakye -author_url: "https://github.com/4cyberlord" +author_url: "https://www.linkedin.com/in/charles-adu-boakye/" shells: [] \ No newline at end of file diff --git a/specs/laravel/laravel_optimize.yml b/specs/laravel/laravel_optimize.yml index 677b250c..9e870385 100644 --- a/specs/laravel/laravel_optimize.yml +++ b/specs/laravel/laravel_optimize.yml @@ -10,4 +10,4 @@ arguments: [] source_url: "https://artisan.page/#optimize" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" -shells: [] \ No newline at end of file +shells: [] \ No newline at end of file From d21332bfafe83e01ebbb1077cadc29faee44d544 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:11:11 +0000 Subject: [PATCH 36/77] Decrypt laravel environment file --- specs/laravel/laravel_decrypt_environment_file.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_decrypt_environment_file.yml diff --git a/specs/laravel/laravel_decrypt_environment_file.yml b/specs/laravel/laravel_decrypt_environment_file.yml new file mode 100644 index 00000000..2dc938c9 --- /dev/null +++ b/specs/laravel/laravel_decrypt_environment_file.yml @@ -0,0 +1,12 @@ +--- +name: Decrypt Laravel environment file +command: |- + php artisan env:decrypt +tags: + - laravel + - php +description: Command to decrypt Laravel environment file +source_url: "https://laravel.com/docs/9.x/configuration#decryption" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From c8ea1cc66ada699a34884fcdbc440cb6cf2784d1 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:16:20 +0000 Subject: [PATCH 37/77] Decrypt laravel enviroment file with key applied --- ...laravel_decrypt_environment_file_with_key.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 specs/laravel/laravel_decrypt_environment_file_with_key.yml diff --git a/specs/laravel/laravel_decrypt_environment_file_with_key.yml b/specs/laravel/laravel_decrypt_environment_file_with_key.yml new file mode 100644 index 00000000..4aec10b0 --- /dev/null +++ b/specs/laravel/laravel_decrypt_environment_file_with_key.yml @@ -0,0 +1,16 @@ +--- +name: Decrypt Laravel environment file with key +command: |- + php artisan env:decrypt --key={{decrypt_key}} +tags: + - laravel + - php +description: Command to decrypt Laravel environment file +arguments: + - name: decrypt_key + description: Provide your laravel decrypt key to decrypt the environment file + default_value: ~ +source_url: "https://laravel.com/docs/9.x/configuration#decryption" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From 1df4b70ced5afdde98aca9fec5e473885defa83d Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:25:49 +0000 Subject: [PATCH 38/77] Generate and set laravel application key --- specs/laravel/laravel_application_key_generate.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_application_key_generate.yml diff --git a/specs/laravel/laravel_application_key_generate.yml b/specs/laravel/laravel_application_key_generate.yml new file mode 100644 index 00000000..6551a914 --- /dev/null +++ b/specs/laravel/laravel_application_key_generate.yml @@ -0,0 +1,12 @@ +--- +name: Generate Laravel application key +command: |- + php artisan key:generate +tags: + - laravel + - php +description: Set laravel application key +source_url: "https://artisan.page/#keygenerate" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From 20c62e96f03a69967c4f1171c37120f44bb50e0c Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:30:08 +0000 Subject: [PATCH 39/77] Laravel Cache table generate --- specs/laravel/laravel_cache_table.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_cache_table.yml diff --git a/specs/laravel/laravel_cache_table.yml b/specs/laravel/laravel_cache_table.yml new file mode 100644 index 00000000..59ffa9f8 --- /dev/null +++ b/specs/laravel/laravel_cache_table.yml @@ -0,0 +1,12 @@ +--- +name: Generate cache table +command: |- + php artisan cache:table +tags: + - laravel + - php +description: Create a migration for the cache database table +source_url: "https://artisan.page/#cachetable" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From da87abf102153074c1aa17943447de0004d56d20 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:33:40 +0000 Subject: [PATCH 40/77] Remove laravel config file --- specs/laravel/laravel_config_clear.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_config_clear.yml diff --git a/specs/laravel/laravel_config_clear.yml b/specs/laravel/laravel_config_clear.yml new file mode 100644 index 00000000..5ad0472f --- /dev/null +++ b/specs/laravel/laravel_config_clear.yml @@ -0,0 +1,12 @@ +--- +name: Clear laravel configuration +command: |- + php artisan config:clear +tags: + - laravel + - php +description: Remove the configuration cache file +source_url: "https://artisan.page/#configclear" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From 52753eb97f1dc176b530804beb0d847ed0450190 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:37:49 +0000 Subject: [PATCH 41/77] Laravel config cache file added --- specs/laravel/laravel_config_cache.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_config_cache.yml diff --git a/specs/laravel/laravel_config_cache.yml b/specs/laravel/laravel_config_cache.yml new file mode 100644 index 00000000..8344b4ef --- /dev/null +++ b/specs/laravel/laravel_config_cache.yml @@ -0,0 +1,12 @@ +--- +name: Create Laravel config cache file +command: |- + php artisan config:clear +tags: + - laravel + - php +description: Create a cache file for faster configuration loading +source_url: "https://artisan.page/#configclear" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From 07282a83f488cb1d02ec31c20178161792a9ad54 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:43:23 +0000 Subject: [PATCH 42/77] Laravel events cache --- specs/laravel/laravel_event_cache.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_event_cache.yml diff --git a/specs/laravel/laravel_event_cache.yml b/specs/laravel/laravel_event_cache.yml new file mode 100644 index 00000000..fafc9315 --- /dev/null +++ b/specs/laravel/laravel_event_cache.yml @@ -0,0 +1,12 @@ +--- +name: Discover and Cache all Laravel application events and listeners +command: |- + php artisan event:cache +tags: + - laravel + - php +description: Discover and cache the application's events and listeners +source_url: "https://artisan.page/#eventcache" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From be3541ff537b829b46b2d6beaaefa0df9c435eb9 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:46:29 +0000 Subject: [PATCH 43/77] Laravel events clear --- specs/laravel/laravel_event_clear.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_event_clear.yml diff --git a/specs/laravel/laravel_event_clear.yml b/specs/laravel/laravel_event_clear.yml new file mode 100644 index 00000000..d7735e4a --- /dev/null +++ b/specs/laravel/laravel_event_clear.yml @@ -0,0 +1,12 @@ +--- +name: Clear laravel events and listeners +command: |- + php artisan event:clear +tags: + - laravel + - php +description: Clear all cached events and listeners +source_url: "https://artisan.page/#eventclear" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From e811707f37162e69e9102814e8f44119ac4f5c49 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:49:31 +0000 Subject: [PATCH 44/77] Laravel events generate added --- specs/laravel/laravel_event_generate.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_event_generate.yml diff --git a/specs/laravel/laravel_event_generate.yml b/specs/laravel/laravel_event_generate.yml new file mode 100644 index 00000000..ec9d0f90 --- /dev/null +++ b/specs/laravel/laravel_event_generate.yml @@ -0,0 +1,12 @@ +--- +name: Generate missing laravel events and listeners +command: |- + php artisan event:generate +tags: + - laravel + - php +description: Generate the missing events and listeners based on registration +source_url: "https://artisan.page/#eventgenerate" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From be68110154bc3de356c68b1e5d9fed68d619aaec Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:53:58 +0000 Subject: [PATCH 45/77] Laravel events list added --- specs/laravel/laravel_events_list.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 specs/laravel/laravel_events_list.yml diff --git a/specs/laravel/laravel_events_list.yml b/specs/laravel/laravel_events_list.yml new file mode 100644 index 00000000..93ed9592 --- /dev/null +++ b/specs/laravel/laravel_events_list.yml @@ -0,0 +1,12 @@ +--- +name: List all application's events listeners +command: |- + php artisan event:list +tags: + - laravel + - php +description: List the application's events and listeners +source_url: "https://artisan.page/#eventgenerate" +author: Charles Adu Boakye +author_url: "https://github.com/4cyberlord" +shells: [] \ No newline at end of file From 98b97b94f29adbca767b26073302ca7dc10a15d3 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Tue, 17 Jan 2023 09:54:59 +0000 Subject: [PATCH 46/77] Laravel events list added with link update --- specs/laravel/laravel_events_list.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/laravel/laravel_events_list.yml b/specs/laravel/laravel_events_list.yml index 93ed9592..3459522c 100644 --- a/specs/laravel/laravel_events_list.yml +++ b/specs/laravel/laravel_events_list.yml @@ -6,7 +6,7 @@ tags: - laravel - php description: List the application's events and listeners -source_url: "https://artisan.page/#eventgenerate" +source_url: "https://artisan.page/#eventlist" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" shells: [] \ No newline at end of file From 935187b38637440ee92ccce0bb2dcd137f5464d5 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Thu, 19 Jan 2023 19:25:26 +0000 Subject: [PATCH 47/77] Attached framework's name --- specs/laravel/laravel_cache_table.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/laravel/laravel_cache_table.yml b/specs/laravel/laravel_cache_table.yml index 59ffa9f8..390ea4f3 100644 --- a/specs/laravel/laravel_cache_table.yml +++ b/specs/laravel/laravel_cache_table.yml @@ -1,5 +1,5 @@ --- -name: Generate cache table +name: Generate Laravel cache table command: |- php artisan cache:table tags: @@ -9,4 +9,4 @@ description: Create a migration for the cache database table source_url: "https://artisan.page/#cachetable" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" -shells: [] \ No newline at end of file +shells: [] From 179ccbf250e7e14263a8d9f3628787c8e172d541 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Thu, 19 Jan 2023 19:37:05 +0000 Subject: [PATCH 48/77] Update laravel_event_cache.yml --- specs/laravel/laravel_event_cache.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/laravel/laravel_event_cache.yml b/specs/laravel/laravel_event_cache.yml index fafc9315..03c6f149 100644 --- a/specs/laravel/laravel_event_cache.yml +++ b/specs/laravel/laravel_event_cache.yml @@ -1,5 +1,5 @@ --- -name: Discover and Cache all Laravel application events and listeners +name: Discover and cache all Laravel application events and listeners command: |- php artisan event:cache tags: @@ -9,4 +9,4 @@ description: Discover and cache the application's events and listeners source_url: "https://artisan.page/#eventcache" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" -shells: [] \ No newline at end of file +shells: [] From d02340bf5e9d2ef3e10a5a4eeb2b3bd6d237c2bc Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Thu, 19 Jan 2023 19:42:40 +0000 Subject: [PATCH 49/77] Updated name --- specs/laravel/laravel_event_clear.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/laravel/laravel_event_clear.yml b/specs/laravel/laravel_event_clear.yml index d7735e4a..212f98fb 100644 --- a/specs/laravel/laravel_event_clear.yml +++ b/specs/laravel/laravel_event_clear.yml @@ -1,5 +1,5 @@ --- -name: Clear laravel events and listeners +name: Clear Laravel events and listeners command: |- php artisan event:clear tags: @@ -9,4 +9,4 @@ description: Clear all cached events and listeners source_url: "https://artisan.page/#eventclear" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" -shells: [] \ No newline at end of file +shells: [] From 92f7c5928622326a4ce131ab0867b62875ed8e3d Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Thu, 19 Jan 2023 19:44:03 +0000 Subject: [PATCH 50/77] Update laravel_events_list.yml --- specs/laravel/laravel_events_list.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/laravel/laravel_events_list.yml b/specs/laravel/laravel_events_list.yml index 3459522c..636eb222 100644 --- a/specs/laravel/laravel_events_list.yml +++ b/specs/laravel/laravel_events_list.yml @@ -1,5 +1,5 @@ --- -name: List all application's events listeners +name: List all Laravel application's events listeners command: |- php artisan event:list tags: @@ -9,4 +9,4 @@ description: List the application's events and listeners source_url: "https://artisan.page/#eventlist" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" -shells: [] \ No newline at end of file +shells: [] From 0dcb9b9d150e7ce5b1a81e40a8b3eab5832f7d0d Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Thu, 19 Jan 2023 19:44:41 +0000 Subject: [PATCH 51/77] Update laravel_config_clear.yml --- specs/laravel/laravel_config_clear.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/laravel/laravel_config_clear.yml b/specs/laravel/laravel_config_clear.yml index 5ad0472f..f901cf88 100644 --- a/specs/laravel/laravel_config_clear.yml +++ b/specs/laravel/laravel_config_clear.yml @@ -1,5 +1,5 @@ --- -name: Clear laravel configuration +name: Clear Laravel configuration command: |- php artisan config:clear tags: @@ -9,4 +9,4 @@ description: Remove the configuration cache file source_url: "https://artisan.page/#configclear" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" -shells: [] \ No newline at end of file +shells: [] From da7e985fadd3a3fc777150e57028c2e8228f674f Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Thu, 19 Jan 2023 19:45:30 +0000 Subject: [PATCH 52/77] Update laravel_event_generate.yml --- specs/laravel/laravel_event_generate.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/laravel/laravel_event_generate.yml b/specs/laravel/laravel_event_generate.yml index ec9d0f90..0abead3f 100644 --- a/specs/laravel/laravel_event_generate.yml +++ b/specs/laravel/laravel_event_generate.yml @@ -1,5 +1,5 @@ --- -name: Generate missing laravel events and listeners +name: Generate missing Laravel events and listeners command: |- php artisan event:generate tags: @@ -9,4 +9,4 @@ description: Generate the missing events and listeners based on registration source_url: "https://artisan.page/#eventgenerate" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" -shells: [] \ No newline at end of file +shells: [] From e9bd03674d5eea7ef8b55c6e6ee6680d8051108a Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Thu, 19 Jan 2023 19:46:26 +0000 Subject: [PATCH 53/77] Update laravel_maintenance_mode_bypass.yml --- specs/laravel/laravel_maintenance_mode_bypass.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/laravel/laravel_maintenance_mode_bypass.yml b/specs/laravel/laravel_maintenance_mode_bypass.yml index af233fcb..64126844 100644 --- a/specs/laravel/laravel_maintenance_mode_bypass.yml +++ b/specs/laravel/laravel_maintenance_mode_bypass.yml @@ -1,5 +1,5 @@ --- -name: Bypass laravel maintenance mode +name: Bypass Laravel maintenance mode command: |- php artisan down --secret="{{bypass_secret_key}}" tags: @@ -10,4 +10,4 @@ arguments: [] source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" -shells: [] \ No newline at end of file +shells: [] From c899241bdcc9b048290d36591de88a86d6d4cf59 Mon Sep 17 00:00:00 2001 From: Charles Adu Boakye <4cyberlord@proton.me> Date: Thu, 19 Jan 2023 19:46:56 +0000 Subject: [PATCH 54/77] Update laravel_maintenance_mode_redirect.yml --- specs/laravel/laravel_maintenance_mode_redirect.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/laravel/laravel_maintenance_mode_redirect.yml b/specs/laravel/laravel_maintenance_mode_redirect.yml index 22cdf236..f3bdd5c1 100644 --- a/specs/laravel/laravel_maintenance_mode_redirect.yml +++ b/specs/laravel/laravel_maintenance_mode_redirect.yml @@ -1,5 +1,5 @@ --- -name: Redirect laravel maintenance mode +name: Redirect Laravel maintenance mode command: |- php artisan down --redirect={{URI}} tags: @@ -13,4 +13,4 @@ arguments: source_url: "https://laravel.com/docs/9.x/configuration#pre-rendering-the-maintenance-mode-view" author: Charles Adu Boakye author_url: "https://github.com/4cyberlord" -shells: [] \ No newline at end of file +shells: [] From c102a768ef3255c7150e76f327f780b1d332d2a5 Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Sun, 29 Jan 2023 17:08:29 -0500 Subject: [PATCH 55/77] feat: set_upstream_branch: Added a workflow for setting the upstream branch for a local branch. Also renamed the current workflow for setting upstream to synchronize with upstream since it wasn't actually setting but pushing the local branch to remote --- specs/git/set_upstream_branch.yaml | 15 ++++++++++++--- specs/git/synchronize_upstream_branch.yaml | 8 ++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 specs/git/synchronize_upstream_branch.yaml diff --git a/specs/git/set_upstream_branch.yaml b/specs/git/set_upstream_branch.yaml index 6dea74b5..3ab54045 100644 --- a/specs/git/set_upstream_branch.yaml +++ b/specs/git/set_upstream_branch.yaml @@ -1,8 +1,17 @@ --- name: Set upstream branch -command: git push -u origin HEAD +command: git branch --set-upstream-to={{remote}}/{{remote_branch}} {{local_branch}} +arguments: + - name: remote + description: The name of the remote + default_value: origin + - name: remote_branch + description: The name of the remote branch that the local branch should be point to + default_value: main + - name: local_branch + description: The name of the local branch that we want to set + default_value: main tags: - git -description: Sync the local branch to the remote branch with the same name. -arguments: [] +description: Sets the upstream for a local branch to a remote branch. shells: [] \ No newline at end of file diff --git a/specs/git/synchronize_upstream_branch.yaml b/specs/git/synchronize_upstream_branch.yaml new file mode 100644 index 00000000..f7fe02f6 --- /dev/null +++ b/specs/git/synchronize_upstream_branch.yaml @@ -0,0 +1,8 @@ +--- +name: Synchronize upstream branch +command: git push -u origin HEAD +tags: + - git +description: Sync the local branch to the remote branch with the same name. +arguments: [] +shells: [] \ No newline at end of file From d4034a59f3f51ea53a0ca74ddf3bd6a84cf3fee8 Mon Sep 17 00:00:00 2001 From: Aloke Desai Date: Mon, 30 Jan 2023 10:55:26 -0500 Subject: [PATCH 56/77] fix clippy warnings --- specs/turborepo/workflows/build.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/specs/turborepo/workflows/build.rs b/specs/turborepo/workflows/build.rs index 9a5e5f84..d657a5cf 100644 --- a/specs/turborepo/workflows/build.rs +++ b/specs/turborepo/workflows/build.rs @@ -34,7 +34,7 @@ fn main() -> Result<()> { println!("attempting to generate workflow at {:?}", entry.path()); let workflow: Workflow = serde_yaml::from_str(yaml_content)?; - println!("generated workflow is {:?}", workflow); + println!("generated workflow is {workflow:?}"); let file_name = entry .file_name() @@ -43,14 +43,14 @@ fn main() -> Result<()> { .replace(".yaml", "") .replace(".yml", "") .to_case(Case::Snake); - println!("file name is {:?}", file_name); + println!("file name is {file_name:?}"); // Create a module for each Workflow within the parent module. workflows_added.push(file_name.clone()); write_workflow(workflow, file_name.as_str())?; - writeln!(&parent_module, "pub mod {};", file_name)?; + writeln!(&parent_module, "pub mod {file_name};")?; } } @@ -84,7 +84,7 @@ fn write_workflows_function( writeln!(parent_module, "pub fn workflows() -> Vec {{")?; writeln!(parent_module, "vec![")?; for workflows in workflows_added { - writeln!(parent_module, "{}::workflow(),", workflows)?; + writeln!(parent_module, "{workflows}::workflow(),")?; } writeln!(parent_module, "]")?; writeln!(parent_module, "}}")?; @@ -103,7 +103,7 @@ fn write_workflows_function( /// } /// ``` fn write_workflow(workflow: Workflow, file_name: &str) -> Result<()> { - let module = std::fs::File::create(format!("src/generated_workflows/{}.rs", file_name))?; + let module = std::fs::File::create(format!("src/generated_workflows/{file_name}.rs"))?; writeln!(&module, "use warp_workflows_types::*;")?; writeln!(&module, r#"pub fn workflow() -> Workflow {{"#)?; From 3f25a92943841d853934797723d1fe1448a8dad2 Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Mon, 27 Feb 2023 15:23:56 -0500 Subject: [PATCH 57/77] feat: Graphite: Adding some of the core Grpahite workflows from the Graphite cheatsheet website: https://graphite.dev/docs/command-reference --- specs/graphite/gt_branch_checkout.yaml | 14 ++++++++++++++ specs/graphite/gt_branch_down.yaml | 14 ++++++++++++++ specs/graphite/gt_branch_list.yaml | 10 ++++++++++ .../gt_branch_new_with_commit_message.yaml | 14 ++++++++++++++ specs/graphite/gt_branch_up.yaml | 14 ++++++++++++++ specs/graphite/gt_downstack_get.yaml | 14 ++++++++++++++ specs/graphite/gt_stack_bottom.yaml | 11 +++++++++++ specs/graphite/gt_stack_submit.yaml | 11 +++++++++++ specs/graphite/gt_stack_up.yaml | 11 +++++++++++ specs/graphite/gt_synchronize_with_remote.yaml | 11 +++++++++++ specs/graphite/gt_troubleshoot_graphite_cli.yaml | 10 ++++++++++ 11 files changed, 134 insertions(+) create mode 100644 specs/graphite/gt_branch_checkout.yaml create mode 100644 specs/graphite/gt_branch_down.yaml create mode 100644 specs/graphite/gt_branch_list.yaml create mode 100644 specs/graphite/gt_branch_new_with_commit_message.yaml create mode 100644 specs/graphite/gt_branch_up.yaml create mode 100644 specs/graphite/gt_downstack_get.yaml create mode 100644 specs/graphite/gt_stack_bottom.yaml create mode 100644 specs/graphite/gt_stack_submit.yaml create mode 100644 specs/graphite/gt_stack_up.yaml create mode 100644 specs/graphite/gt_synchronize_with_remote.yaml create mode 100644 specs/graphite/gt_troubleshoot_graphite_cli.yaml diff --git a/specs/graphite/gt_branch_checkout.yaml b/specs/graphite/gt_branch_checkout.yaml new file mode 100644 index 00000000..0dcea075 --- /dev/null +++ b/specs/graphite/gt_branch_checkout.yaml @@ -0,0 +1,14 @@ +--- +name: Graphite - Checkout a branch +command: "gt bco {{branch_name}}" +tags: + - graphite +description: "Often used when wanting to check out a singular branch for collaboration OR personal use." +arguments: + - name: branch_name + description: The name of the branch that you want to checkout + default_value: main +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_down.yaml b/specs/graphite/gt_branch_down.yaml new file mode 100644 index 00000000..6150e269 --- /dev/null +++ b/specs/graphite/gt_branch_down.yaml @@ -0,0 +1,14 @@ +--- +name: Graphite - Move down the stack of branches +command: "gt branch down {{step}}" +tags: + - graphite +description: "Quickly move down a stack of branches. By default, takes a step argument of 1, but can add a step value (ex. gt branch up 2) to skip a certain number of branches." +arguments: + - name: step + description: The number of branches to pass when traversing the stack of branches. + default_value: 1 +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_list.yaml b/specs/graphite/gt_branch_list.yaml new file mode 100644 index 00000000..7218397b --- /dev/null +++ b/specs/graphite/gt_branch_list.yaml @@ -0,0 +1,10 @@ +--- +name: Graphite - Log or show the stacked branch tree +command: "gt ls" +tags: + - graphite +description: "This might be glaringly obvious, but any time branches are created/manipulated/changed, we run this command as if it were second nature. Most of our engineers prefer the truncated (ls) log to the full log." +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_new_with_commit_message.yaml b/specs/graphite/gt_branch_new_with_commit_message.yaml new file mode 100644 index 00000000..d2374f42 --- /dev/null +++ b/specs/graphite/gt_branch_new_with_commit_message.yaml @@ -0,0 +1,14 @@ +--- +name: Graphite - Create a branch with an accompanying commit message +command: "gt bc -am {{commit_message}}" +tags: + - graphite +description: "Creating some changes, staging those changes, creating a new branch and committing those changes to the new branch is way too much work. Create your changes and run this single-line command to do all of that in one go. Compare to: `git checkout -b && git add . && git commit -m `" +arguments: + - name: commit_message + description: The message to assign to this commit. + default_value: ~ +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_up.yaml b/specs/graphite/gt_branch_up.yaml new file mode 100644 index 00000000..66f44dce --- /dev/null +++ b/specs/graphite/gt_branch_up.yaml @@ -0,0 +1,14 @@ +--- +name: Graphite - Move up the stack of branches +command: "gt branch up {{step}}" +tags: + - graphite +description: "Quickly move up a stack of branches. By default, takes a step argument of 1, but can add a step value (ex. gt branch up 2) to skip a certain number of branches." +arguments: + - name: step + description: The number of branches to pass when traversing the stack of branches. + default_value: 1 +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_downstack_get.yaml b/specs/graphite/gt_downstack_get.yaml new file mode 100644 index 00000000..bc92ad1b --- /dev/null +++ b/specs/graphite/gt_downstack_get.yaml @@ -0,0 +1,14 @@ +--- +name: Graphite - Get downstack from remote +command: "gt dsg {{branch_name}}" +tags: + - graphite +description: "A popular command for getting a stack locally that's been created/manipulated by someone else. Oftentimes followed up with gt bdl to delete irrelevant branches locally." +arguments: + - name: branch_name + description: The name of the branch that you want to fetch from remote + default_value: main +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_stack_bottom.yaml b/specs/graphite/gt_stack_bottom.yaml new file mode 100644 index 00000000..b5e65e0c --- /dev/null +++ b/specs/graphite/gt_stack_bottom.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Jump to the bottom of the stack +command: "gt bb" +tags: + - graphite +description: "Quickly move all the way down (bb) the stack" +arguments: [] +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_stack_submit.yaml b/specs/graphite/gt_stack_submit.yaml new file mode 100644 index 00000000..8af4198e --- /dev/null +++ b/specs/graphite/gt_stack_submit.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Submit stack +command: "gt ss" +tags: + - graphite +description: "Submit your changes across all PRs on a stack." +arguments: [] +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_stack_up.yaml b/specs/graphite/gt_stack_up.yaml new file mode 100644 index 00000000..19471b5a --- /dev/null +++ b/specs/graphite/gt_stack_up.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Jump to the top of the stack +command: "gt bt" +tags: + - graphite +description: "Quickly move all the way up (bt) the stack" +arguments: [] +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_synchronize_with_remote.yaml b/specs/graphite/gt_synchronize_with_remote.yaml new file mode 100644 index 00000000..f5c7151f --- /dev/null +++ b/specs/graphite/gt_synchronize_with_remote.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Synchronize with remote +command: "gt rs -r" +tags: + - graphite +description: "A quick command to pull changes from your trunk branch and subsequently restack upstack changes. Same as `gt repo sync && gt stack restack` under the hood. Also deletes any branches that have been merged." +arguments: [] +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_troubleshoot_graphite_cli.yaml b/specs/graphite/gt_troubleshoot_graphite_cli.yaml new file mode 100644 index 00000000..235bb0f1 --- /dev/null +++ b/specs/graphite/gt_troubleshoot_graphite_cli.yaml @@ -0,0 +1,10 @@ +--- +name: Graphite - Troubleshoot the Graphite CLI +command: "gt repo init --reset && gt dev cache --clear" +tags: + - graphite +description: "This combination of commands resets Graphite repo metadata and clears the cache." +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] From 11f4d6ad0470dc35b472d23c2dc81698805ad840 Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Mon, 27 Feb 2023 16:29:13 -0500 Subject: [PATCH 58/77] Adding some more grapihte workflows --- specs/graphite/gt_branch_checkout.yaml | 2 +- specs/graphite/gt_branch_create.yaml | 10 ++++++++++ specs/graphite/gt_branch_delete.yaml | 10 ++++++++++ specs/graphite/gt_branch_edit.yaml | 10 ++++++++++ specs/graphite/gt_branch_fold.yaml | 10 ++++++++++ specs/graphite/gt_branch_list.yaml | 2 +- specs/graphite/gt_branch_new_with_commit_message.yaml | 2 +- specs/graphite/gt_branch_rename.yaml | 10 ++++++++++ specs/graphite/gt_branch_restack.yaml | 10 ++++++++++ 9 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 specs/graphite/gt_branch_create.yaml create mode 100644 specs/graphite/gt_branch_delete.yaml create mode 100644 specs/graphite/gt_branch_edit.yaml create mode 100644 specs/graphite/gt_branch_fold.yaml create mode 100644 specs/graphite/gt_branch_rename.yaml create mode 100644 specs/graphite/gt_branch_restack.yaml diff --git a/specs/graphite/gt_branch_checkout.yaml b/specs/graphite/gt_branch_checkout.yaml index 0dcea075..ade1c15d 100644 --- a/specs/graphite/gt_branch_checkout.yaml +++ b/specs/graphite/gt_branch_checkout.yaml @@ -3,7 +3,7 @@ name: Graphite - Checkout a branch command: "gt bco {{branch_name}}" tags: - graphite -description: "Often used when wanting to check out a singular branch for collaboration OR personal use." +description: "Switch to or checkout a branch. Similar to `git checkout `" arguments: - name: branch_name description: The name of the branch that you want to checkout diff --git a/specs/graphite/gt_branch_create.yaml b/specs/graphite/gt_branch_create.yaml new file mode 100644 index 00000000..a884630b --- /dev/null +++ b/specs/graphite/gt_branch_create.yaml @@ -0,0 +1,10 @@ +--- +name: Graphite - Create a new branch stacked on top of the current branch and commit staged changes +command: "gt branch create" +tags: + - graphite +description: "Alias: `bc`. Create a new branch stacked on top of the current branch and commit staged changes. If no branch name is specified but a commit message is passed, generate a branch name from the commit message." +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_delete.yaml b/specs/graphite/gt_branch_delete.yaml new file mode 100644 index 00000000..c11307ac --- /dev/null +++ b/specs/graphite/gt_branch_delete.yaml @@ -0,0 +1,10 @@ +--- +name: Graphite - Delete branch +command: "gt branch delete" +tags: + - graphite +description: "Alias: `bdl`. Delete a branch and its corresponding Graphite metadata." +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_edit.yaml b/specs/graphite/gt_branch_edit.yaml new file mode 100644 index 00000000..8626c66c --- /dev/null +++ b/specs/graphite/gt_branch_edit.yaml @@ -0,0 +1,10 @@ +--- +name: Graphite - Run an interactive branch rebase +command: "gt branch edit" +tags: + - graphite +description: "Alias: `be`. Run an interactive rebase on the current branch's commits and restack upstack branches." +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_fold.yaml b/specs/graphite/gt_branch_fold.yaml new file mode 100644 index 00000000..947c6698 --- /dev/null +++ b/specs/graphite/gt_branch_fold.yaml @@ -0,0 +1,10 @@ +--- +name: Graphite - Fold a branch's changes into its parent +command: "gt branch fold" +tags: + - graphite +description: "Alias: `bf`. Fold a branch's changes into its parent, update dependencies of descendants of the new combined branch, and restack." +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_list.yaml b/specs/graphite/gt_branch_list.yaml index 7218397b..1c517f6a 100644 --- a/specs/graphite/gt_branch_list.yaml +++ b/specs/graphite/gt_branch_list.yaml @@ -3,7 +3,7 @@ name: Graphite - Log or show the stacked branch tree command: "gt ls" tags: - graphite -description: "This might be glaringly obvious, but any time branches are created/manipulated/changed, we run this command as if it were second nature. Most of our engineers prefer the truncated (ls) log to the full log." +description: "Log all stacks tracked by Graphite, arranged to show dependencies. Similar to showing the commit log." source_url: "https://graphite.dev/docs/graphite-cheatsheet" author: graphite author_url: "https://graphite.dev/" diff --git a/specs/graphite/gt_branch_new_with_commit_message.yaml b/specs/graphite/gt_branch_new_with_commit_message.yaml index d2374f42..f9dc6660 100644 --- a/specs/graphite/gt_branch_new_with_commit_message.yaml +++ b/specs/graphite/gt_branch_new_with_commit_message.yaml @@ -3,7 +3,7 @@ name: Graphite - Create a branch with an accompanying commit message command: "gt bc -am {{commit_message}}" tags: - graphite -description: "Creating some changes, staging those changes, creating a new branch and committing those changes to the new branch is way too much work. Create your changes and run this single-line command to do all of that in one go. Compare to: `git checkout -b && git add . && git commit -m `" +description: "Create a new branch stacked on top of the current branch and commit staged changes. If no branch name is specified but a commit message is passed, generate a branch name from the commit message." arguments: - name: commit_message description: The message to assign to this commit. diff --git a/specs/graphite/gt_branch_rename.yaml b/specs/graphite/gt_branch_rename.yaml new file mode 100644 index 00000000..fd01b20a --- /dev/null +++ b/specs/graphite/gt_branch_rename.yaml @@ -0,0 +1,10 @@ +--- +name: Graphite - Rename a branch +command: "gt branch rename" +tags: + - graphite +description: "Alias: `brn`. Rename a branch and update metadata referencing it. Note that this removes any associated GitHub pull request." +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_restack.yaml b/specs/graphite/gt_branch_restack.yaml new file mode 100644 index 00000000..801c570d --- /dev/null +++ b/specs/graphite/gt_branch_restack.yaml @@ -0,0 +1,10 @@ +--- +name: Graphite - Restacks the current branch to its parent +command: "gt branch restack" +tags: + - graphite +description: "Alias: `brn`. Ensure the current branch is based on its parent, rebasing if necessary." +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] From 227971aee560f2241a19886a6c9abf8d1e08700f Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Mon, 27 Feb 2023 18:49:35 -0500 Subject: [PATCH 59/77] Adding more of the graphite workflows primarily the ones specific to branches --- specs/graphite/a no param copy.yaml | 11 +++++++++++ specs/graphite/gt_auth.yaml | 11 +++++++++++ specs/graphite/gt_branch_bottom.yaml | 11 +++++++++++ specs/graphite/gt_branch_checkout.yaml | 4 ++-- specs/graphite/gt_branch_create.yaml | 2 +- specs/graphite/gt_branch_delete.yaml | 2 +- specs/graphite/gt_branch_down.yaml | 4 ++-- specs/graphite/gt_branch_edit.yaml | 2 +- specs/graphite/gt_branch_fold.yaml | 2 +- specs/graphite/gt_branch_info.yaml | 10 ++++++++++ specs/graphite/gt_branch_list.yaml | 2 +- .../gt_branch_new_with_commit_message.yaml | 2 +- specs/graphite/gt_branch_rename.yaml | 2 +- specs/graphite/gt_branch_restack.yaml | 4 ++-- specs/graphite/gt_branch_split.yaml | 11 +++++++++++ specs/graphite/gt_branch_squash.yaml | 11 +++++++++++ specs/graphite/gt_branch_submit.yaml | 11 +++++++++++ specs/graphite/gt_branch_top.yaml | 11 +++++++++++ specs/graphite/gt_branch_track.yaml | 11 +++++++++++ specs/graphite/gt_branch_untrack.yaml | 11 +++++++++++ specs/graphite/gt_branch_up.yaml | 4 ++-- specs/graphite/gt_changelog.yaml | 11 +++++++++++ specs/graphite/gt_commit_amend.yaml | 11 +++++++++++ specs/graphite/gt_commit_create.yaml | 11 +++++++++++ specs/graphite/gt_completion.yaml | 11 +++++++++++ specs/graphite/gt_continue.yaml | 11 +++++++++++ specs/graphite/gt_dash.yaml | 11 +++++++++++ specs/graphite/gt_dash_pr.yaml | 11 +++++++++++ specs/graphite/gt_docs.yaml | 11 +++++++++++ specs/graphite/gt_downstack_edit.yaml | 14 ++++++++++++++ specs/graphite/gt_downstack_get.yaml | 6 +++--- specs/graphite/gt_downstack_restack.yaml | 11 +++++++++++ specs/graphite/gt_downstack_submit.yaml | 11 +++++++++++ specs/graphite/gt_downstack_test.yaml | 11 +++++++++++ specs/graphite/gt_downstack_track.yaml | 11 +++++++++++ specs/graphite/gt_stack_bottom.yaml | 11 ----------- specs/graphite/gt_stack_submit.yaml | 2 +- specs/graphite/gt_stack_up.yaml | 2 +- specs/graphite/gt_synchronize_with_remote.yaml | 2 +- specs/graphite/gt_troubleshoot_graphite_cli.yaml | 2 +- 40 files changed, 277 insertions(+), 33 deletions(-) create mode 100644 specs/graphite/a no param copy.yaml create mode 100644 specs/graphite/gt_auth.yaml create mode 100644 specs/graphite/gt_branch_bottom.yaml create mode 100644 specs/graphite/gt_branch_info.yaml create mode 100644 specs/graphite/gt_branch_split.yaml create mode 100644 specs/graphite/gt_branch_squash.yaml create mode 100644 specs/graphite/gt_branch_submit.yaml create mode 100644 specs/graphite/gt_branch_top.yaml create mode 100644 specs/graphite/gt_branch_track.yaml create mode 100644 specs/graphite/gt_branch_untrack.yaml create mode 100644 specs/graphite/gt_changelog.yaml create mode 100644 specs/graphite/gt_commit_amend.yaml create mode 100644 specs/graphite/gt_commit_create.yaml create mode 100644 specs/graphite/gt_completion.yaml create mode 100644 specs/graphite/gt_continue.yaml create mode 100644 specs/graphite/gt_dash.yaml create mode 100644 specs/graphite/gt_dash_pr.yaml create mode 100644 specs/graphite/gt_docs.yaml create mode 100644 specs/graphite/gt_downstack_edit.yaml create mode 100644 specs/graphite/gt_downstack_restack.yaml create mode 100644 specs/graphite/gt_downstack_submit.yaml create mode 100644 specs/graphite/gt_downstack_test.yaml create mode 100644 specs/graphite/gt_downstack_track.yaml delete mode 100644 specs/graphite/gt_stack_bottom.yaml diff --git a/specs/graphite/a no param copy.yaml b/specs/graphite/a no param copy.yaml new file mode 100644 index 00000000..12acda76 --- /dev/null +++ b/specs/graphite/a no param copy.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Authorize the Graphite CLI +command: "gt auth" +tags: + - graphite +description: "Add your auth token to enable Graphite CLI to create and update your PRs on GitHub." +arguments: [] +source_url: "https://graphite.dev/docs/graphite-cheatsheet" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_auth.yaml b/specs/graphite/gt_auth.yaml new file mode 100644 index 00000000..bea2fc42 --- /dev/null +++ b/specs/graphite/gt_auth.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Authorize the Graphite CLI +command: "gt auth" +tags: + - graphite +description: "Add your auth token to enable Graphite CLI to create and update your PRs on GitHub." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_bottom.yaml b/specs/graphite/gt_branch_bottom.yaml new file mode 100644 index 00000000..ebe5c665 --- /dev/null +++ b/specs/graphite/gt_branch_bottom.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Jump to the bottom of the stack +command: "gt branch bottom" +tags: + - graphite +description: "Alias `bb`. Quickly move all the way down (bb) the stack" +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_checkout.yaml b/specs/graphite/gt_branch_checkout.yaml index ade1c15d..a64f677c 100644 --- a/specs/graphite/gt_branch_checkout.yaml +++ b/specs/graphite/gt_branch_checkout.yaml @@ -3,12 +3,12 @@ name: Graphite - Checkout a branch command: "gt bco {{branch_name}}" tags: - graphite -description: "Switch to or checkout a branch. Similar to `git checkout `" +description: "Alias `bco`. Switch to or checkout a branch. Similar to `git checkout `" arguments: - name: branch_name description: The name of the branch that you want to checkout default_value: main -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_branch_create.yaml b/specs/graphite/gt_branch_create.yaml index a884630b..1c4287ac 100644 --- a/specs/graphite/gt_branch_create.yaml +++ b/specs/graphite/gt_branch_create.yaml @@ -4,7 +4,7 @@ command: "gt branch create" tags: - graphite description: "Alias: `bc`. Create a new branch stacked on top of the current branch and commit staged changes. If no branch name is specified but a commit message is passed, generate a branch name from the commit message." -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_branch_delete.yaml b/specs/graphite/gt_branch_delete.yaml index c11307ac..b038495f 100644 --- a/specs/graphite/gt_branch_delete.yaml +++ b/specs/graphite/gt_branch_delete.yaml @@ -4,7 +4,7 @@ command: "gt branch delete" tags: - graphite description: "Alias: `bdl`. Delete a branch and its corresponding Graphite metadata." -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_branch_down.yaml b/specs/graphite/gt_branch_down.yaml index 6150e269..b815cdcc 100644 --- a/specs/graphite/gt_branch_down.yaml +++ b/specs/graphite/gt_branch_down.yaml @@ -3,12 +3,12 @@ name: Graphite - Move down the stack of branches command: "gt branch down {{step}}" tags: - graphite -description: "Quickly move down a stack of branches. By default, takes a step argument of 1, but can add a step value (ex. gt branch up 2) to skip a certain number of branches." +description: "Alias `bd`. Quickly move down a stack of branches. By default, takes a step argument of 1, but can add a step value (ex. gt branch up 2) to skip a certain number of branches." arguments: - name: step description: The number of branches to pass when traversing the stack of branches. default_value: 1 -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_branch_edit.yaml b/specs/graphite/gt_branch_edit.yaml index 8626c66c..c39bfdc5 100644 --- a/specs/graphite/gt_branch_edit.yaml +++ b/specs/graphite/gt_branch_edit.yaml @@ -4,7 +4,7 @@ command: "gt branch edit" tags: - graphite description: "Alias: `be`. Run an interactive rebase on the current branch's commits and restack upstack branches." -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_branch_fold.yaml b/specs/graphite/gt_branch_fold.yaml index 947c6698..10cf6efe 100644 --- a/specs/graphite/gt_branch_fold.yaml +++ b/specs/graphite/gt_branch_fold.yaml @@ -4,7 +4,7 @@ command: "gt branch fold" tags: - graphite description: "Alias: `bf`. Fold a branch's changes into its parent, update dependencies of descendants of the new combined branch, and restack." -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_branch_info.yaml b/specs/graphite/gt_branch_info.yaml new file mode 100644 index 00000000..56615262 --- /dev/null +++ b/specs/graphite/gt_branch_info.yaml @@ -0,0 +1,10 @@ +--- +name: Graphite - Displays information about the current branch +command: "gt branch info" +tags: + - graphite +description: "Alias: `bi`. Display information about the current branch." +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_list.yaml b/specs/graphite/gt_branch_list.yaml index 1c517f6a..c04eb013 100644 --- a/specs/graphite/gt_branch_list.yaml +++ b/specs/graphite/gt_branch_list.yaml @@ -4,7 +4,7 @@ command: "gt ls" tags: - graphite description: "Log all stacks tracked by Graphite, arranged to show dependencies. Similar to showing the commit log." -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_branch_new_with_commit_message.yaml b/specs/graphite/gt_branch_new_with_commit_message.yaml index f9dc6660..4d6d8a2d 100644 --- a/specs/graphite/gt_branch_new_with_commit_message.yaml +++ b/specs/graphite/gt_branch_new_with_commit_message.yaml @@ -8,7 +8,7 @@ arguments: - name: commit_message description: The message to assign to this commit. default_value: ~ -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_branch_rename.yaml b/specs/graphite/gt_branch_rename.yaml index fd01b20a..64ee8a35 100644 --- a/specs/graphite/gt_branch_rename.yaml +++ b/specs/graphite/gt_branch_rename.yaml @@ -4,7 +4,7 @@ command: "gt branch rename" tags: - graphite description: "Alias: `brn`. Rename a branch and update metadata referencing it. Note that this removes any associated GitHub pull request." -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_branch_restack.yaml b/specs/graphite/gt_branch_restack.yaml index 801c570d..6cc2678f 100644 --- a/specs/graphite/gt_branch_restack.yaml +++ b/specs/graphite/gt_branch_restack.yaml @@ -3,8 +3,8 @@ name: Graphite - Restacks the current branch to its parent command: "gt branch restack" tags: - graphite -description: "Alias: `brn`. Ensure the current branch is based on its parent, rebasing if necessary." -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +description: "Alias: `br`. Ensure the current branch is based on its parent, rebasing if necessary." +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_branch_split.yaml b/specs/graphite/gt_branch_split.yaml new file mode 100644 index 00000000..af3cfc6d --- /dev/null +++ b/specs/graphite/gt_branch_split.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Splits the current branch into multiple branches +command: "gt branch split" +tags: + - graphite +description: "Alias: `bsp`. Split the current branch into multiple branches." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_squash.yaml b/specs/graphite/gt_branch_squash.yaml new file mode 100644 index 00000000..1fc493c1 --- /dev/null +++ b/specs/graphite/gt_branch_squash.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Squash the commits on the current branch into one +command: "gt branch squash" +tags: + - graphite +description: "Alias `bsq`. Squash all commits in the current branch and restack upstack branches." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_submit.yaml b/specs/graphite/gt_branch_submit.yaml new file mode 100644 index 00000000..fcdb3124 --- /dev/null +++ b/specs/graphite/gt_branch_submit.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Pushes (force) the current branch to GitHub +command: "gt branch submit" +tags: + - graphite +description: "Alias: `bs`. Idempotently force push the current branch to GitHub, creating or updating a pull request." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_top.yaml b/specs/graphite/gt_branch_top.yaml new file mode 100644 index 00000000..fe36e0a5 --- /dev/null +++ b/specs/graphite/gt_branch_top.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Pushes (force) the current branch to GitHub +command: "gt branch top" +tags: + - graphite +description: "Alias: `bt`. Switch to the tip branch of the current stack. Prompts if ambiguous." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_track.yaml b/specs/graphite/gt_branch_track.yaml new file mode 100644 index 00000000..75f1cd32 --- /dev/null +++ b/specs/graphite/gt_branch_track.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Starts tracking the current branch +command: "gt branch track" +tags: + - graphite +description: "Alias: `btr`. Start tracking the current branch (by default) with Graphite by selecting its parent. This command can also be used to fix corrupted Graphite metadata." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_untrack.yaml b/specs/graphite/gt_branch_untrack.yaml new file mode 100644 index 00000000..7cd6083b --- /dev/null +++ b/specs/graphite/gt_branch_untrack.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Stops tracking the current branch and all its children +command: "gt branch untrack" +tags: + - graphite +description: "Alias: `but`. Stop tracking a branch with Graphite. If the branch has children, they will also be untracked." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_branch_up.yaml b/specs/graphite/gt_branch_up.yaml index 66f44dce..10c00729 100644 --- a/specs/graphite/gt_branch_up.yaml +++ b/specs/graphite/gt_branch_up.yaml @@ -3,12 +3,12 @@ name: Graphite - Move up the stack of branches command: "gt branch up {{step}}" tags: - graphite -description: "Quickly move up a stack of branches. By default, takes a step argument of 1, but can add a step value (ex. gt branch up 2) to skip a certain number of branches." +description: "Alias `bu`. Quickly move up a stack of branches. By default, takes a step argument of 1, but can add a step value (ex. gt branch up 2) to skip a certain number of branches." arguments: - name: step description: The number of branches to pass when traversing the stack of branches. default_value: 1 -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_changelog.yaml b/specs/graphite/gt_changelog.yaml new file mode 100644 index 00000000..c7be9a18 --- /dev/null +++ b/specs/graphite/gt_changelog.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Shows the Graphite changelog +command: "gt changelog" +tags: + - graphite +description: "Show the Graphite CLI changelog." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_commit_amend.yaml b/specs/graphite/gt_commit_amend.yaml new file mode 100644 index 00000000..6fbb23b4 --- /dev/null +++ b/specs/graphite/gt_commit_amend.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Amend the most recent commit and restack upstack branches +command: "gt commit amend" +tags: + - graphite +description: "Alias `ca`. Amend the most recent commit and restack upstack branches." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_commit_create.yaml b/specs/graphite/gt_commit_create.yaml new file mode 100644 index 00000000..a3f605e9 --- /dev/null +++ b/specs/graphite/gt_commit_create.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Create a new commit and restack upstack branches +command: "gt commit create" +tags: + - graphite +description: "Alias `cc`. Create a new commit and restack upstack branches." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_completion.yaml b/specs/graphite/gt_completion.yaml new file mode 100644 index 00000000..c913ca5b --- /dev/null +++ b/specs/graphite/gt_completion.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Set up bash or zsh tab completion. +command: "gt completion" +tags: + - graphite +description: "Set up bash or zsh tab completion." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_continue.yaml b/specs/graphite/gt_continue.yaml new file mode 100644 index 00000000..e8c385ec --- /dev/null +++ b/specs/graphite/gt_continue.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Continues the most recent Graphite command halted by a merge conflict +command: "gt continue" +tags: + - graphite +description: "Alias `cont`. Continues the most recent Graphite command halted by a merge conflict." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_dash.yaml b/specs/graphite/gt_dash.yaml new file mode 100644 index 00000000..47dc9a97 --- /dev/null +++ b/specs/graphite/gt_dash.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Open the web dashboard +command: "gt dash" +tags: + - graphite +description: "Open the web dashboard." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_dash_pr.yaml b/specs/graphite/gt_dash_pr.yaml new file mode 100644 index 00000000..35b1794f --- /dev/null +++ b/specs/graphite/gt_dash_pr.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Open the web dashboard +command: "gt dash pr" +tags: + - graphite +description: "Alias: `dp` `dpr`. Opens the PR page for the current branch." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_docs.yaml b/specs/graphite/gt_docs.yaml new file mode 100644 index 00000000..feb83840 --- /dev/null +++ b/specs/graphite/gt_docs.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Show the Graphite CLI docs +command: "gt docs" +tags: + - graphite +description: "Show the Graphite CLI docs." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_downstack_edit.yaml b/specs/graphite/gt_downstack_edit.yaml new file mode 100644 index 00000000..177ae31e --- /dev/null +++ b/specs/graphite/gt_downstack_edit.yaml @@ -0,0 +1,14 @@ +--- +name: Graphite - Edit the branches +command: "gt downstack edit" +tags: + - graphite +description: "Alias `dse`. Edit the order of the branches between trunk and the current branch, restacking all of their descendants." +arguments: + - name: branch_name + description: The name of the branch that you want to fetch from remote + default_value: main +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_downstack_get.yaml b/specs/graphite/gt_downstack_get.yaml index bc92ad1b..c235a156 100644 --- a/specs/graphite/gt_downstack_get.yaml +++ b/specs/graphite/gt_downstack_get.yaml @@ -1,14 +1,14 @@ --- name: Graphite - Get downstack from remote -command: "gt dsg {{branch_name}}" +command: "gt downstack get {{branch_name}}" tags: - graphite -description: "A popular command for getting a stack locally that's been created/manipulated by someone else. Oftentimes followed up with gt bdl to delete irrelevant branches locally." +description: "Alias `dsg`. Get branches from trunk to the specified branch from remote, prompting the user to resolve conflicts." arguments: - name: branch_name description: The name of the branch that you want to fetch from remote default_value: main -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_downstack_restack.yaml b/specs/graphite/gt_downstack_restack.yaml new file mode 100644 index 00000000..c38c89ea --- /dev/null +++ b/specs/graphite/gt_downstack_restack.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Rebase the parent branches +command: "gt downstack restack" +tags: + - graphite +description: "Alias `dsr`. From trunk to the current branch, ensure each is based on its parent, rebasing if necessary." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_downstack_submit.yaml b/specs/graphite/gt_downstack_submit.yaml new file mode 100644 index 00000000..728db39c --- /dev/null +++ b/specs/graphite/gt_downstack_submit.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Push the parent branches to GitHub +command: "gt downstack submit" +tags: + - graphite +description: "Alias `dss`. Idempotently force push all branches from trunk to the current branch to GitHub, creating or updating distinct pull requests for each." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_downstack_test.yaml b/specs/graphite/gt_downstack_test.yaml new file mode 100644 index 00000000..a312c942 --- /dev/null +++ b/specs/graphite/gt_downstack_test.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Run a command on every branch within a stack +command: "gt downstack test" +tags: + - graphite +description: "Alias `dst`. From trunk to the current branch, run the provided command on each branch and aggregate the results." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_downstack_track.yaml b/specs/graphite/gt_downstack_track.yaml new file mode 100644 index 00000000..bcaee610 --- /dev/null +++ b/specs/graphite/gt_downstack_track.yaml @@ -0,0 +1,11 @@ +--- +name: Graphite - Recursively track parent branches +command: "gt downstack track" +tags: + - graphite +description: "Alias `dstr`. Track a series of untracked branches, by specifying each branch's parent, stopping when you reach a tracked branch." +arguments: [] +source_url: "https://graphite.dev/docs/command-reference" +author: graphite +author_url: "https://graphite.dev/" +shells: [] diff --git a/specs/graphite/gt_stack_bottom.yaml b/specs/graphite/gt_stack_bottom.yaml deleted file mode 100644 index b5e65e0c..00000000 --- a/specs/graphite/gt_stack_bottom.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Jump to the bottom of the stack -command: "gt bb" -tags: - - graphite -description: "Quickly move all the way down (bb) the stack" -arguments: [] -source_url: "https://graphite.dev/docs/graphite-cheatsheet" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_stack_submit.yaml b/specs/graphite/gt_stack_submit.yaml index 8af4198e..ca23b187 100644 --- a/specs/graphite/gt_stack_submit.yaml +++ b/specs/graphite/gt_stack_submit.yaml @@ -5,7 +5,7 @@ tags: - graphite description: "Submit your changes across all PRs on a stack." arguments: [] -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_stack_up.yaml b/specs/graphite/gt_stack_up.yaml index 19471b5a..a03ae17d 100644 --- a/specs/graphite/gt_stack_up.yaml +++ b/specs/graphite/gt_stack_up.yaml @@ -5,7 +5,7 @@ tags: - graphite description: "Quickly move all the way up (bt) the stack" arguments: [] -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_synchronize_with_remote.yaml b/specs/graphite/gt_synchronize_with_remote.yaml index f5c7151f..51a31fa6 100644 --- a/specs/graphite/gt_synchronize_with_remote.yaml +++ b/specs/graphite/gt_synchronize_with_remote.yaml @@ -5,7 +5,7 @@ tags: - graphite description: "A quick command to pull changes from your trunk branch and subsequently restack upstack changes. Same as `gt repo sync && gt stack restack` under the hood. Also deletes any branches that have been merged." arguments: [] -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] diff --git a/specs/graphite/gt_troubleshoot_graphite_cli.yaml b/specs/graphite/gt_troubleshoot_graphite_cli.yaml index 235bb0f1..b0fbbdb2 100644 --- a/specs/graphite/gt_troubleshoot_graphite_cli.yaml +++ b/specs/graphite/gt_troubleshoot_graphite_cli.yaml @@ -4,7 +4,7 @@ command: "gt repo init --reset && gt dev cache --clear" tags: - graphite description: "This combination of commands resets Graphite repo metadata and clears the cache." -source_url: "https://graphite.dev/docs/graphite-cheatsheet" +source_url: "https://graphite.dev/docs/command-reference" author: graphite author_url: "https://graphite.dev/" shells: [] From 1732da9df8e2fbbce929b6222703e08ba856777f Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Mon, 27 Feb 2023 20:32:12 -0500 Subject: [PATCH 60/77] Removing some of the more common graphite workflows for better curation --- specs/graphite/a no param copy.yaml | 11 ----------- specs/graphite/gt_auth.yaml | 11 ----------- specs/graphite/gt_branch_bottom.yaml | 11 ----------- specs/graphite/gt_branch_create.yaml | 10 ---------- specs/graphite/gt_branch_delete.yaml | 10 ---------- specs/graphite/gt_branch_down.yaml | 14 -------------- specs/graphite/gt_branch_list.yaml | 10 ---------- specs/graphite/gt_branch_split.yaml | 11 ----------- specs/graphite/gt_branch_squash.yaml | 11 ----------- specs/graphite/gt_branch_top.yaml | 11 ----------- specs/graphite/gt_branch_track.yaml | 11 ----------- specs/graphite/gt_branch_untrack.yaml | 11 ----------- specs/graphite/gt_branch_up.yaml | 14 -------------- specs/graphite/gt_changelog.yaml | 11 ----------- specs/graphite/gt_commit_amend.yaml | 11 ----------- specs/graphite/gt_commit_create.yaml | 11 ----------- specs/graphite/gt_completion.yaml | 11 ----------- specs/graphite/gt_continue.yaml | 11 ----------- specs/graphite/gt_dash.yaml | 11 ----------- specs/graphite/gt_docs.yaml | 11 ----------- specs/graphite/gt_stack_submit.yaml | 11 ----------- specs/graphite/gt_stack_up.yaml | 11 ----------- 22 files changed, 245 deletions(-) delete mode 100644 specs/graphite/a no param copy.yaml delete mode 100644 specs/graphite/gt_auth.yaml delete mode 100644 specs/graphite/gt_branch_bottom.yaml delete mode 100644 specs/graphite/gt_branch_create.yaml delete mode 100644 specs/graphite/gt_branch_delete.yaml delete mode 100644 specs/graphite/gt_branch_down.yaml delete mode 100644 specs/graphite/gt_branch_list.yaml delete mode 100644 specs/graphite/gt_branch_split.yaml delete mode 100644 specs/graphite/gt_branch_squash.yaml delete mode 100644 specs/graphite/gt_branch_top.yaml delete mode 100644 specs/graphite/gt_branch_track.yaml delete mode 100644 specs/graphite/gt_branch_untrack.yaml delete mode 100644 specs/graphite/gt_branch_up.yaml delete mode 100644 specs/graphite/gt_changelog.yaml delete mode 100644 specs/graphite/gt_commit_amend.yaml delete mode 100644 specs/graphite/gt_commit_create.yaml delete mode 100644 specs/graphite/gt_completion.yaml delete mode 100644 specs/graphite/gt_continue.yaml delete mode 100644 specs/graphite/gt_dash.yaml delete mode 100644 specs/graphite/gt_docs.yaml delete mode 100644 specs/graphite/gt_stack_submit.yaml delete mode 100644 specs/graphite/gt_stack_up.yaml diff --git a/specs/graphite/a no param copy.yaml b/specs/graphite/a no param copy.yaml deleted file mode 100644 index 12acda76..00000000 --- a/specs/graphite/a no param copy.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Authorize the Graphite CLI -command: "gt auth" -tags: - - graphite -description: "Add your auth token to enable Graphite CLI to create and update your PRs on GitHub." -arguments: [] -source_url: "https://graphite.dev/docs/graphite-cheatsheet" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_auth.yaml b/specs/graphite/gt_auth.yaml deleted file mode 100644 index bea2fc42..00000000 --- a/specs/graphite/gt_auth.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Authorize the Graphite CLI -command: "gt auth" -tags: - - graphite -description: "Add your auth token to enable Graphite CLI to create and update your PRs on GitHub." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_bottom.yaml b/specs/graphite/gt_branch_bottom.yaml deleted file mode 100644 index ebe5c665..00000000 --- a/specs/graphite/gt_branch_bottom.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Jump to the bottom of the stack -command: "gt branch bottom" -tags: - - graphite -description: "Alias `bb`. Quickly move all the way down (bb) the stack" -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_create.yaml b/specs/graphite/gt_branch_create.yaml deleted file mode 100644 index 1c4287ac..00000000 --- a/specs/graphite/gt_branch_create.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Graphite - Create a new branch stacked on top of the current branch and commit staged changes -command: "gt branch create" -tags: - - graphite -description: "Alias: `bc`. Create a new branch stacked on top of the current branch and commit staged changes. If no branch name is specified but a commit message is passed, generate a branch name from the commit message." -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_delete.yaml b/specs/graphite/gt_branch_delete.yaml deleted file mode 100644 index b038495f..00000000 --- a/specs/graphite/gt_branch_delete.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Graphite - Delete branch -command: "gt branch delete" -tags: - - graphite -description: "Alias: `bdl`. Delete a branch and its corresponding Graphite metadata." -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_down.yaml b/specs/graphite/gt_branch_down.yaml deleted file mode 100644 index b815cdcc..00000000 --- a/specs/graphite/gt_branch_down.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: Graphite - Move down the stack of branches -command: "gt branch down {{step}}" -tags: - - graphite -description: "Alias `bd`. Quickly move down a stack of branches. By default, takes a step argument of 1, but can add a step value (ex. gt branch up 2) to skip a certain number of branches." -arguments: - - name: step - description: The number of branches to pass when traversing the stack of branches. - default_value: 1 -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_list.yaml b/specs/graphite/gt_branch_list.yaml deleted file mode 100644 index c04eb013..00000000 --- a/specs/graphite/gt_branch_list.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Graphite - Log or show the stacked branch tree -command: "gt ls" -tags: - - graphite -description: "Log all stacks tracked by Graphite, arranged to show dependencies. Similar to showing the commit log." -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_split.yaml b/specs/graphite/gt_branch_split.yaml deleted file mode 100644 index af3cfc6d..00000000 --- a/specs/graphite/gt_branch_split.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Splits the current branch into multiple branches -command: "gt branch split" -tags: - - graphite -description: "Alias: `bsp`. Split the current branch into multiple branches." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_squash.yaml b/specs/graphite/gt_branch_squash.yaml deleted file mode 100644 index 1fc493c1..00000000 --- a/specs/graphite/gt_branch_squash.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Squash the commits on the current branch into one -command: "gt branch squash" -tags: - - graphite -description: "Alias `bsq`. Squash all commits in the current branch and restack upstack branches." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_top.yaml b/specs/graphite/gt_branch_top.yaml deleted file mode 100644 index fe36e0a5..00000000 --- a/specs/graphite/gt_branch_top.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Pushes (force) the current branch to GitHub -command: "gt branch top" -tags: - - graphite -description: "Alias: `bt`. Switch to the tip branch of the current stack. Prompts if ambiguous." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_track.yaml b/specs/graphite/gt_branch_track.yaml deleted file mode 100644 index 75f1cd32..00000000 --- a/specs/graphite/gt_branch_track.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Starts tracking the current branch -command: "gt branch track" -tags: - - graphite -description: "Alias: `btr`. Start tracking the current branch (by default) with Graphite by selecting its parent. This command can also be used to fix corrupted Graphite metadata." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_untrack.yaml b/specs/graphite/gt_branch_untrack.yaml deleted file mode 100644 index 7cd6083b..00000000 --- a/specs/graphite/gt_branch_untrack.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Stops tracking the current branch and all its children -command: "gt branch untrack" -tags: - - graphite -description: "Alias: `but`. Stop tracking a branch with Graphite. If the branch has children, they will also be untracked." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_up.yaml b/specs/graphite/gt_branch_up.yaml deleted file mode 100644 index 10c00729..00000000 --- a/specs/graphite/gt_branch_up.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: Graphite - Move up the stack of branches -command: "gt branch up {{step}}" -tags: - - graphite -description: "Alias `bu`. Quickly move up a stack of branches. By default, takes a step argument of 1, but can add a step value (ex. gt branch up 2) to skip a certain number of branches." -arguments: - - name: step - description: The number of branches to pass when traversing the stack of branches. - default_value: 1 -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_changelog.yaml b/specs/graphite/gt_changelog.yaml deleted file mode 100644 index c7be9a18..00000000 --- a/specs/graphite/gt_changelog.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Shows the Graphite changelog -command: "gt changelog" -tags: - - graphite -description: "Show the Graphite CLI changelog." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_commit_amend.yaml b/specs/graphite/gt_commit_amend.yaml deleted file mode 100644 index 6fbb23b4..00000000 --- a/specs/graphite/gt_commit_amend.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Amend the most recent commit and restack upstack branches -command: "gt commit amend" -tags: - - graphite -description: "Alias `ca`. Amend the most recent commit and restack upstack branches." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_commit_create.yaml b/specs/graphite/gt_commit_create.yaml deleted file mode 100644 index a3f605e9..00000000 --- a/specs/graphite/gt_commit_create.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Create a new commit and restack upstack branches -command: "gt commit create" -tags: - - graphite -description: "Alias `cc`. Create a new commit and restack upstack branches." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_completion.yaml b/specs/graphite/gt_completion.yaml deleted file mode 100644 index c913ca5b..00000000 --- a/specs/graphite/gt_completion.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Set up bash or zsh tab completion. -command: "gt completion" -tags: - - graphite -description: "Set up bash or zsh tab completion." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_continue.yaml b/specs/graphite/gt_continue.yaml deleted file mode 100644 index e8c385ec..00000000 --- a/specs/graphite/gt_continue.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Continues the most recent Graphite command halted by a merge conflict -command: "gt continue" -tags: - - graphite -description: "Alias `cont`. Continues the most recent Graphite command halted by a merge conflict." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_dash.yaml b/specs/graphite/gt_dash.yaml deleted file mode 100644 index 47dc9a97..00000000 --- a/specs/graphite/gt_dash.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Open the web dashboard -command: "gt dash" -tags: - - graphite -description: "Open the web dashboard." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_docs.yaml b/specs/graphite/gt_docs.yaml deleted file mode 100644 index feb83840..00000000 --- a/specs/graphite/gt_docs.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Show the Graphite CLI docs -command: "gt docs" -tags: - - graphite -description: "Show the Graphite CLI docs." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_stack_submit.yaml b/specs/graphite/gt_stack_submit.yaml deleted file mode 100644 index ca23b187..00000000 --- a/specs/graphite/gt_stack_submit.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Submit stack -command: "gt ss" -tags: - - graphite -description: "Submit your changes across all PRs on a stack." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_stack_up.yaml b/specs/graphite/gt_stack_up.yaml deleted file mode 100644 index a03ae17d..00000000 --- a/specs/graphite/gt_stack_up.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Jump to the top of the stack -command: "gt bt" -tags: - - graphite -description: "Quickly move all the way up (bt) the stack" -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] From 7ac6acec9e6d49c579500f148eb0b805cce6271d Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Mon, 27 Feb 2023 20:46:18 -0500 Subject: [PATCH 61/77] cull more workflows --- specs/graphite/gt_branch_edit.yaml | 10 ---------- specs/graphite/gt_branch_fold.yaml | 10 ---------- specs/graphite/gt_branch_info.yaml | 10 ---------- specs/graphite/gt_branch_rename.yaml | 10 ---------- specs/graphite/gt_dash_pr.yaml | 11 ----------- 5 files changed, 51 deletions(-) delete mode 100644 specs/graphite/gt_branch_edit.yaml delete mode 100644 specs/graphite/gt_branch_fold.yaml delete mode 100644 specs/graphite/gt_branch_info.yaml delete mode 100644 specs/graphite/gt_branch_rename.yaml delete mode 100644 specs/graphite/gt_dash_pr.yaml diff --git a/specs/graphite/gt_branch_edit.yaml b/specs/graphite/gt_branch_edit.yaml deleted file mode 100644 index c39bfdc5..00000000 --- a/specs/graphite/gt_branch_edit.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Graphite - Run an interactive branch rebase -command: "gt branch edit" -tags: - - graphite -description: "Alias: `be`. Run an interactive rebase on the current branch's commits and restack upstack branches." -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_fold.yaml b/specs/graphite/gt_branch_fold.yaml deleted file mode 100644 index 10cf6efe..00000000 --- a/specs/graphite/gt_branch_fold.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Graphite - Fold a branch's changes into its parent -command: "gt branch fold" -tags: - - graphite -description: "Alias: `bf`. Fold a branch's changes into its parent, update dependencies of descendants of the new combined branch, and restack." -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_info.yaml b/specs/graphite/gt_branch_info.yaml deleted file mode 100644 index 56615262..00000000 --- a/specs/graphite/gt_branch_info.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Graphite - Displays information about the current branch -command: "gt branch info" -tags: - - graphite -description: "Alias: `bi`. Display information about the current branch." -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_branch_rename.yaml b/specs/graphite/gt_branch_rename.yaml deleted file mode 100644 index 64ee8a35..00000000 --- a/specs/graphite/gt_branch_rename.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: Graphite - Rename a branch -command: "gt branch rename" -tags: - - graphite -description: "Alias: `brn`. Rename a branch and update metadata referencing it. Note that this removes any associated GitHub pull request." -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] diff --git a/specs/graphite/gt_dash_pr.yaml b/specs/graphite/gt_dash_pr.yaml deleted file mode 100644 index 35b1794f..00000000 --- a/specs/graphite/gt_dash_pr.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Graphite - Open the web dashboard -command: "gt dash pr" -tags: - - graphite -description: "Alias: `dp` `dpr`. Opens the PR page for the current branch." -arguments: [] -source_url: "https://graphite.dev/docs/command-reference" -author: graphite -author_url: "https://graphite.dev/" -shells: [] From 4a8568412defddbe326c8bf8317e65e022c9b875 Mon Sep 17 00:00:00 2001 From: Automated Version Bump Date: Tue, 28 Feb 2023 16:55:20 +0000 Subject: [PATCH 62/77] ci: version bump to 1.0.10 --- build_ts/package-lock.json | 4 ++-- build_ts/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build_ts/package-lock.json b/build_ts/package-lock.json index 0c0153fb..de88fbed 100644 --- a/build_ts/package-lock.json +++ b/build_ts/package-lock.json @@ -1,12 +1,12 @@ { "name": "warp-workflows", - "version": "1.0.9", + "version": "1.0.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "warp-workflows", - "version": "1.0.9", + "version": "1.0.10", "license": "MIT", "devDependencies": { "@types/webpack-env": "^1.16.3", diff --git a/build_ts/package.json b/build_ts/package.json index ea47d7b4..40ddd4e3 100644 --- a/build_ts/package.json +++ b/build_ts/package.json @@ -1,6 +1,6 @@ { "name": "warp-workflows", - "version": "1.0.9", + "version": "1.0.10", "description": "Workflows used within Warp", "main": "dist/warp-workflows.js", "types": "dist/index.d.ts", From a4a370de9f5d7e35e61403696d9b4ddf809534f3 Mon Sep 17 00:00:00 2001 From: Sascha1337 <1337@wasm.host> Date: Sat, 11 Mar 2023 08:28:28 +0800 Subject: [PATCH 63/77] Update cosmwasm-optimize.yaml --- specs/cosmwasm/cosmwasm-optimize.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/cosmwasm/cosmwasm-optimize.yaml b/specs/cosmwasm/cosmwasm-optimize.yaml index eaf12cbc..e790269b 100644 --- a/specs/cosmwasm/cosmwasm-optimize.yaml +++ b/specs/cosmwasm/cosmwasm-optimize.yaml @@ -4,7 +4,7 @@ command: docker run --rm -v "$(pwd)":/code --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry - cosmwasm/rust-optimizer:0.12.10 + cosmwasm/rust-optimizer:0.12.12 tags: - cosmwasm description: > From 7939d84abe25ecccdd9a1b09e253a6cad3bc303c Mon Sep 17 00:00:00 2001 From: BurtDS Date: Fri, 10 Mar 2023 21:45:46 +0100 Subject: [PATCH 64/77] =?UTF-8?q?=E2=9C=A8=20Migration,=20with=20pretend,?= =?UTF-8?q?=20fresh=20and=20seed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- specs/laravel/laravel_migrate.yml | 13 +++++++++++++ specs/laravel/laravel_migrate_fresh.yml | 13 +++++++++++++ specs/laravel/laravel_migrate_fresh_seed.yml | 13 +++++++++++++ specs/laravel/laravel_migrate_pretend.yml | 13 +++++++++++++ 4 files changed, 52 insertions(+) create mode 100644 specs/laravel/laravel_migrate.yml create mode 100644 specs/laravel/laravel_migrate_fresh.yml create mode 100644 specs/laravel/laravel_migrate_fresh_seed.yml create mode 100644 specs/laravel/laravel_migrate_pretend.yml diff --git a/specs/laravel/laravel_migrate.yml b/specs/laravel/laravel_migrate.yml new file mode 100644 index 00000000..c9708a12 --- /dev/null +++ b/specs/laravel/laravel_migrate.yml @@ -0,0 +1,13 @@ +--- +name: Run Laravel database migrations +command: |- + php artisan migrate +tags: + - Laravel + - Php +description: This command runs Laravel database migrations +arguments: [] +source_url: "https://laravel.com/docs/10.x/migrations#running-migrations" +author: Bert De Swaef +author_url: "https://github.com/BurtDS" +shells: [] \ No newline at end of file diff --git a/specs/laravel/laravel_migrate_fresh.yml b/specs/laravel/laravel_migrate_fresh.yml new file mode 100644 index 00000000..faeea804 --- /dev/null +++ b/specs/laravel/laravel_migrate_fresh.yml @@ -0,0 +1,13 @@ +--- +name: Drop all tables and run Laravel's migrations +command: |- + php artisan migrate:fresh +tags: + - Laravel + - Php +description: This command will drop all excisting tables and run Laravel database migrations after that +arguments: [] +source_url: "https://laravel.com/docs/10.x/migrations#running-migrations" +author: Bert De Swaef +author_url: "https://github.com/BurtDS" +shells: [] \ No newline at end of file diff --git a/specs/laravel/laravel_migrate_fresh_seed.yml b/specs/laravel/laravel_migrate_fresh_seed.yml new file mode 100644 index 00000000..9c40a1f7 --- /dev/null +++ b/specs/laravel/laravel_migrate_fresh_seed.yml @@ -0,0 +1,13 @@ +--- +name: Drop all tables and run Laravel's migrations and seeders +command: |- + php artisan migrate:fresh --seed +tags: + - Laravel + - Php +description: This command will drop all excisting tables and run Laravel database migrations after that, with seeding the database at the end. +arguments: [] +source_url: "https://laravel.com/docs/10.x/migrations#running-migrations" +author: Bert De Swaef +author_url: "https://github.com/BurtDS" +shells: [] \ No newline at end of file diff --git a/specs/laravel/laravel_migrate_pretend.yml b/specs/laravel/laravel_migrate_pretend.yml new file mode 100644 index 00000000..d284da6f --- /dev/null +++ b/specs/laravel/laravel_migrate_pretend.yml @@ -0,0 +1,13 @@ +--- +name: Pretend to run Laravel database migrations +command: |- + php artisan migrate --pretend +tags: + - Laravel + - Php +description: This command will return the SQL statement that would be performed when we would run the migration +arguments: [] +source_url: "https://laravel.com/docs/10.x/migrations#running-migrations" +author: Bert De Swaef +author_url: "https://github.com/BurtDS" +shells: [] \ No newline at end of file From 4299c471527681aaee480d6b4418c9c0ef2df4b9 Mon Sep 17 00:00:00 2001 From: Radu Galbenu Date: Mon, 7 Nov 2022 15:47:08 +0200 Subject: [PATCH 65/77] 2 new workflows and a suggestion --- specs/aws/aws_eks_update_kubeconfig.yaml | 10 ++++++++++ specs/kubernetes/exec_shell_inside_pod.yaml | 10 ++++++++++ .../run_a_bash_command_within_a_kubernetes_pod.yaml | 4 +++- 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 specs/aws/aws_eks_update_kubeconfig.yaml create mode 100644 specs/kubernetes/exec_shell_inside_pod.yaml diff --git a/specs/aws/aws_eks_update_kubeconfig.yaml b/specs/aws/aws_eks_update_kubeconfig.yaml new file mode 100644 index 00000000..f661ce1f --- /dev/null +++ b/specs/aws/aws_eks_update_kubeconfig.yaml @@ -0,0 +1,10 @@ +name: Set AWS EKS kubeconfig +command: aws eks update-kubeconfig --region {{region}} --name {{cluster}} +arguments: + - name: region + description: AWS region of the cluster + - name: cluster + description: The EKS cluster name + + +tags: ["aws", "eks", "kubeconfig"] \ No newline at end of file diff --git a/specs/kubernetes/exec_shell_inside_pod.yaml b/specs/kubernetes/exec_shell_inside_pod.yaml new file mode 100644 index 00000000..2a2811dd --- /dev/null +++ b/specs/kubernetes/exec_shell_inside_pod.yaml @@ -0,0 +1,10 @@ +name: Opens a Bash shell into Kubernetes pod +command: kubectl -n {{namespace}} exec -it {{pod_name}} -- /bin/sh +arguments: + - name: namespace + default_value: default + description: The namespace of the pod + - name: pod_name + description: The pod into which to exec + +tags: ["kubectl", "exec", "shell", "bash"] \ No newline at end of file diff --git a/specs/kubernetes/run_a_bash_command_within_a_kubernetes_pod.yaml b/specs/kubernetes/run_a_bash_command_within_a_kubernetes_pod.yaml index d2c94b6b..df7d0984 100644 --- a/specs/kubernetes/run_a_bash_command_within_a_kubernetes_pod.yaml +++ b/specs/kubernetes/run_a_bash_command_within_a_kubernetes_pod.yaml @@ -1,10 +1,12 @@ --- name: Run a Bash command within a Kubernetes pod -command: 'kubectl exec -it --namespace=tools {{pod_name}} -- bash -c "{{bash_command}}"' +command: 'kubectl exec -it --namespace={{namespace}} {{pod_name}} -- bash -c "{{bash_command}}"' tags: - kubernetes description: 'Runs a Bash command in a Kubernetes pod. The double dash symbol "--" is used to separate the command you want to run inside the container from the kubectl arguments.' arguments: + - name: namespace + description: The namespace in which the pod is located - name: pod_name description: The name of the pod default_value: ~ From f8923ece849ee8bf011bda15c88d0f9c46b03ad3 Mon Sep 17 00:00:00 2001 From: Radu Galbenu Date: Thu, 2 Feb 2023 19:21:51 +0200 Subject: [PATCH 66/77] update tags --- specs/aws/aws_eks_update_kubeconfig.yaml | 2 +- specs/kubernetes/exec_shell_inside_pod.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/aws/aws_eks_update_kubeconfig.yaml b/specs/aws/aws_eks_update_kubeconfig.yaml index f661ce1f..5e970040 100644 --- a/specs/aws/aws_eks_update_kubeconfig.yaml +++ b/specs/aws/aws_eks_update_kubeconfig.yaml @@ -7,4 +7,4 @@ arguments: description: The EKS cluster name -tags: ["aws", "eks", "kubeconfig"] \ No newline at end of file +tags: ["kubeconfig"] \ No newline at end of file diff --git a/specs/kubernetes/exec_shell_inside_pod.yaml b/specs/kubernetes/exec_shell_inside_pod.yaml index 2a2811dd..89f3a27c 100644 --- a/specs/kubernetes/exec_shell_inside_pod.yaml +++ b/specs/kubernetes/exec_shell_inside_pod.yaml @@ -7,4 +7,4 @@ arguments: - name: pod_name description: The pod into which to exec -tags: ["kubectl", "exec", "shell", "bash"] \ No newline at end of file +tags: ["kubectl"] \ No newline at end of file From 53305d9141b35158c131fba78a7bd07a8abe300d Mon Sep 17 00:00:00 2001 From: Radu Galbenu Date: Thu, 2 Feb 2023 19:36:24 +0200 Subject: [PATCH 67/77] added alias --- specs/aws/aws_eks_update_kubeconfig.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specs/aws/aws_eks_update_kubeconfig.yaml b/specs/aws/aws_eks_update_kubeconfig.yaml index 5e970040..30ca0e91 100644 --- a/specs/aws/aws_eks_update_kubeconfig.yaml +++ b/specs/aws/aws_eks_update_kubeconfig.yaml @@ -1,10 +1,12 @@ name: Set AWS EKS kubeconfig -command: aws eks update-kubeconfig --region {{region}} --name {{cluster}} +command: aws eks update-kubeconfig --region {{region}} --name {{cluster}} --alias {{alias}} arguments: - name: region description: AWS region of the cluster - name: cluster description: The EKS cluster name + - name: alias + description: Alias for the cluster tags: ["kubeconfig"] \ No newline at end of file From 20b3efb5bce9f5a48ffbaf495da16b836bb7b241 Mon Sep 17 00:00:00 2001 From: Jeff Lloyd Date: Mon, 24 Apr 2023 10:03:40 -0700 Subject: [PATCH 68/77] Add description field to Workflow constructor --- workflow-types/src/lib.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/workflow-types/src/lib.rs b/workflow-types/src/lib.rs index 319ca131..fc3f6ebe 100644 --- a/workflow-types/src/lib.rs +++ b/workflow-types/src/lib.rs @@ -59,12 +59,16 @@ impl Workflow { &self.shells } - pub fn new(name: impl Into, command: impl Into) -> Self { + pub fn new( + name: impl Into, + command: impl Into, + description: Option, + ) -> Self { Workflow { name: name.into(), command: command.into(), tags: vec![], - description: None, + description, arguments: vec![], source_url: None, author: None, From 7c507933f7c88f1af1afa41d8c3a00be1af132fa Mon Sep 17 00:00:00 2001 From: Jeff Lloyd Date: Mon, 24 Apr 2023 11:12:14 -0700 Subject: [PATCH 69/77] Use builder pattern instead --- workflow-types/src/lib.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/workflow-types/src/lib.rs b/workflow-types/src/lib.rs index fc3f6ebe..c17cfb64 100644 --- a/workflow-types/src/lib.rs +++ b/workflow-types/src/lib.rs @@ -59,16 +59,12 @@ impl Workflow { &self.shells } - pub fn new( - name: impl Into, - command: impl Into, - description: Option, - ) -> Self { + pub fn new(name: impl Into, command: impl Into) -> Self { Workflow { name: name.into(), command: command.into(), tags: vec![], - description, + description: None, arguments: vec![], source_url: None, author: None, @@ -81,6 +77,11 @@ impl Workflow { self.arguments = arguments; self } + + pub fn with_description(mut self, description: String) -> Self { + self.description = Some(description.clone()); + self + } } #[derive(Clone, Debug, Deserialize, Serialize, Eq, PartialEq, Hash, PartialOrd)] From ee223f8e74d2ab6d0f8e81d4fefefc37220ec1bd Mon Sep 17 00:00:00 2001 From: Jeff Lloyd Date: Mon, 24 Apr 2023 11:31:40 -0700 Subject: [PATCH 70/77] PR fix --- workflow-types/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow-types/src/lib.rs b/workflow-types/src/lib.rs index c17cfb64..57fd7f8b 100644 --- a/workflow-types/src/lib.rs +++ b/workflow-types/src/lib.rs @@ -79,7 +79,7 @@ impl Workflow { } pub fn with_description(mut self, description: String) -> Self { - self.description = Some(description.clone()); + self.description = Some(description); self } } From c28cacedcd8e16f65f9c6f2a0d4b6b2168b838bb Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Wed, 3 May 2023 19:14:04 -0700 Subject: [PATCH 71/77] fix: Remote local branches not in remote was stringified and thus failing --- specs/git/remove_local_branches_not_in_remote.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/specs/git/remove_local_branches_not_in_remote.yaml b/specs/git/remove_local_branches_not_in_remote.yaml index bfb442e8..0263dc60 100644 --- a/specs/git/remove_local_branches_not_in_remote.yaml +++ b/specs/git/remove_local_branches_not_in_remote.yaml @@ -1,13 +1,10 @@ --- name: Remove all local branches that aren't on the remote repository -command: |- - "git branch --merged >/tmp/merged-branches && \ - vi /tmp/merged-branches && \ - xargs git branch -d /tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d Date: Thu, 25 May 2023 15:50:08 -0700 Subject: [PATCH 72/77] Removing a potentially destructive workflow to protect users (#160) --- specs/git/remove_local_branches_not_in_remote.yaml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 specs/git/remove_local_branches_not_in_remote.yaml diff --git a/specs/git/remove_local_branches_not_in_remote.yaml b/specs/git/remove_local_branches_not_in_remote.yaml deleted file mode 100644 index 0263dc60..00000000 --- a/specs/git/remove_local_branches_not_in_remote.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: Remove all local branches that aren't on the remote repository -command: git branch --merged >/tmp/merged-branches && vi /tmp/merged-branches && xargs git branch -d Date: Fri, 2 Jun 2023 00:49:51 +0530 Subject: [PATCH 73/77] added new workflows for brew (#126) * added new workflows for brew * brew bundle install command updated * optional param moved to description --------- Co-authored-by: Aloke Desai Co-authored-by: elvis kahoro --- specs/brew/backup_installed_dependencies.yaml | 10 ++++++++++ specs/brew/install_all_dependencies.yaml | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 specs/brew/backup_installed_dependencies.yaml create mode 100644 specs/brew/install_all_dependencies.yaml diff --git a/specs/brew/backup_installed_dependencies.yaml b/specs/brew/backup_installed_dependencies.yaml new file mode 100644 index 00000000..879e4817 --- /dev/null +++ b/specs/brew/backup_installed_dependencies.yaml @@ -0,0 +1,10 @@ +--- +name: Store / Backup all installed dependencies into Brewfile +command: brew bundle dump +tags: + - homebrew +description: Write all installed casks/formulae/images/taps into a Brewfile in the current directory. +source_url: "https://docs.brew.sh/Manpage" +author: shivamkj +author_url: "https://github.com/shivamkj" +shells: [] diff --git a/specs/brew/install_all_dependencies.yaml b/specs/brew/install_all_dependencies.yaml new file mode 100644 index 00000000..a6ee22de --- /dev/null +++ b/specs/brew/install_all_dependencies.yaml @@ -0,0 +1,10 @@ +--- +name: Install all dependencies from Brewfile +command: brew bundle install +tags: + - homebrew +description: Install and upgrade (by default) all dependencies from the Brewfile. Optionally you can pass [--file={{file_location}}], Otherwise homebrew finds Brewfile from the current location. +source_url: "https://docs.brew.sh/Manpage" +author: shivamkj +author_url: "https://github.com/shivamkj" +shells: [] From c1c0f5ffffd75d481135018afb24bacccc53b9c9 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 22 Aug 2023 02:19:15 -0700 Subject: [PATCH 74/77] NPM Workflows (#114) * NPM Workflows * github ssh * npm updates * npm fix * github * github --------- Co-authored-by: Tim Smith <69870077+timscodebase@users.noreply.github.com> Co-authored-by: elvis kahoro --- .../find_and_delete_node_modules_in_a_folder.yaml | 11 +++++++++++ ...irectories_with_node_modules_and_show_them.yaml | 11 +++++++++++ specs/ssh/copy_ssh_key_for_github.yaml | 14 ++++++++++++++ specs/ssh/generate_new_ssh_key_for_github.yaml | 14 ++++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 specs/npm/find_and_delete_node_modules_in_a_folder.yaml create mode 100644 specs/npm/look_for_all_directories_with_node_modules_and_show_them.yaml create mode 100644 specs/ssh/copy_ssh_key_for_github.yaml create mode 100644 specs/ssh/generate_new_ssh_key_for_github.yaml diff --git a/specs/npm/find_and_delete_node_modules_in_a_folder.yaml b/specs/npm/find_and_delete_node_modules_in_a_folder.yaml new file mode 100644 index 00000000..f366c613 --- /dev/null +++ b/specs/npm/find_and_delete_node_modules_in_a_folder.yaml @@ -0,0 +1,11 @@ +--- +name: Find and delete node_modules in a folder +command: find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \; +tags: + - npm +description: Finds and deletes all node_modules in a folder +arguments: [] +source_url: "https://medium.com/@tomlarge/how-to-delete-all-node-modules-folders-from-your-mac-60b5ce9949cf" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] diff --git a/specs/npm/look_for_all_directories_with_node_modules_and_show_them.yaml b/specs/npm/look_for_all_directories_with_node_modules_and_show_them.yaml new file mode 100644 index 00000000..7cd438df --- /dev/null +++ b/specs/npm/look_for_all_directories_with_node_modules_and_show_them.yaml @@ -0,0 +1,11 @@ +--- +name: Finds all node_modules in a folder +command: find . -name "node_modules" -type d -prune -print | xargs du -chs +tags: + - npm +description: Finds and all node_modules in a folder and displays information about them +arguments: [] +source_url: "https://medium.com/@tomlarge/how-to-delete-all-node-modules-folders-from-your-mac-60b5ce9949cf" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] diff --git a/specs/ssh/copy_ssh_key_for_github.yaml b/specs/ssh/copy_ssh_key_for_github.yaml new file mode 100644 index 00000000..f0f94ba0 --- /dev/null +++ b/specs/ssh/copy_ssh_key_for_github.yaml @@ -0,0 +1,14 @@ +--- +name: Copy SSH key for GitHub +command: "pbcopy < ~/.ssh/id_ed25519.pub" +tags: + - github +description: "Copies the SSH key for GitHub to the clipboard. This is useful for adding the SSH key to GitHub." +arguments: + - name: email + description: "Your email address. This is used to identify the key." + default_value: ~ +source_url: "https://docs.github.com/en/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] diff --git a/specs/ssh/generate_new_ssh_key_for_github.yaml b/specs/ssh/generate_new_ssh_key_for_github.yaml new file mode 100644 index 00000000..6e5f0c51 --- /dev/null +++ b/specs/ssh/generate_new_ssh_key_for_github.yaml @@ -0,0 +1,14 @@ +--- +name: Generate new SSH key for GitHub +command: "ssh-keygen -t ed25519 -C \"{{email}}\"" +tags: + - github +description: "Generates a new SSH key for GitHub. The email address is optional. If you don't specify an email address, you'll be prompted to enter one." +arguments: + - name: email + description: "Your email address. This is used to identify the key." + default_value: ~ +source_url: "https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" +author: Tim Smith +author_url: "https://timsmith.tech" +shells: [] From 7fc272f471777d9b0017f37ae36383d1217bbfc1 Mon Sep 17 00:00:00 2001 From: Nate Finch Date: Tue, 22 Aug 2023 04:28:19 -0500 Subject: [PATCH 75/77] add php and composer workflow templates (#142) * add php workflow templates * add composer files --------- Co-authored-by: Nate Finch Co-authored-by: elvis kahoro --- specs/composer/show_all_packages.yml | 11 +++++++++++ specs/composer/show_all_packages_latest.yml | 11 +++++++++++ specs/composer/update_packages.yml | 11 +++++++++++ specs/php/php_server.yml | 14 ++++++++++++++ specs/php/php_server_directory.yml | 17 +++++++++++++++++ 5 files changed, 64 insertions(+) create mode 100644 specs/composer/show_all_packages.yml create mode 100644 specs/composer/show_all_packages_latest.yml create mode 100644 specs/composer/update_packages.yml create mode 100644 specs/php/php_server.yml create mode 100644 specs/php/php_server_directory.yml diff --git a/specs/composer/show_all_packages.yml b/specs/composer/show_all_packages.yml new file mode 100644 index 00000000..0f16cc79 --- /dev/null +++ b/specs/composer/show_all_packages.yml @@ -0,0 +1,11 @@ +--- +name: Show a list of available Composer packages +command: |- + composer show +tags: + - composer + - php +description: Show a list of available Composer packages +source_url: "https://getcomposer.org/doc/03-cli.md#show" +author: Rob Mellett +author_url: "https://robmellett.com" \ No newline at end of file diff --git a/specs/composer/show_all_packages_latest.yml b/specs/composer/show_all_packages_latest.yml new file mode 100644 index 00000000..49f73d7a --- /dev/null +++ b/specs/composer/show_all_packages_latest.yml @@ -0,0 +1,11 @@ +--- +name: List all installed Composer packages including their latest version +command: |- + composer show --latest +tags: + - composer + - php +description: List all installed Composer packages including their latest version. +source_url: "https://getcomposer.org/doc/03-cli.md#show" +author: Rob Mellett +author_url: "https://robmellett.com" \ No newline at end of file diff --git a/specs/composer/update_packages.yml b/specs/composer/update_packages.yml new file mode 100644 index 00000000..6c65ef8f --- /dev/null +++ b/specs/composer/update_packages.yml @@ -0,0 +1,11 @@ +--- +name: Update Composer dependencies to their latest versions +command: |- + composer update +tags: + - composer + - php +description: Updating Composer dependencies to their latest versions. +source_url: "https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies" +author: Rob Mellett +author_url: "https://robmellett.com" \ No newline at end of file diff --git a/specs/php/php_server.yml b/specs/php/php_server.yml new file mode 100644 index 00000000..243bbfcb --- /dev/null +++ b/specs/php/php_server.yml @@ -0,0 +1,14 @@ +--- +name: Start a local PHP server +command: |- + php -S localhost:{{port}} +tags: + - php +description: A command that starts a PHP server in the current directory. +arguments: + - name: port + description: The port number you want to run, e.g. 8080. + default_value: 8080 +source_url: "https://www.php.net/manual/en/features.commandline.webserver.php" +author: Nate Finch +author_url: "https://github.com/n8finch" \ No newline at end of file diff --git a/specs/php/php_server_directory.yml b/specs/php/php_server_directory.yml new file mode 100644 index 00000000..f2ae9bfb --- /dev/null +++ b/specs/php/php_server_directory.yml @@ -0,0 +1,17 @@ +--- +name: Start a local PHP server with a specific document root directory +command: |- + php -S localhost:{{port}} -t {{directory}} +tags: + - php +description: A command that starts a PHP server in the specified directory. +arguments: + - name: port + description: The port number you want to run, e.g. 8080. + default_value: 8080 + - name: directory + description: The directory you want the server to run from, e.g. app/public. + default_value: app +source_url: "https://www.php.net/manual/en/features.commandline.webserver.php" +author: Nate Finch +author_url: "https://github.com/n8finch" \ No newline at end of file From 38164739aa0c510377df61cb29d878cbbb75b208 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Thu, 31 Aug 2023 16:14:31 +0800 Subject: [PATCH 76/77] Fix typos and add typos to CI (#167) Co-authored-by: elvis kahoro --- .github/workflows/ci.yaml | 3 +++ specs/laravel/laravel_migrate_fresh.yml | 2 +- specs/laravel/laravel_migrate_fresh_seed.yml | 2 +- specs/zip/compress_subdirectories_under_folder.yaml | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index effe7800..bb5b8d3b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,6 +12,9 @@ jobs: - name: Checkout sources uses: actions/checkout@v3 + - name: Check typos + uses: crate-ci/typos@master + - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: diff --git a/specs/laravel/laravel_migrate_fresh.yml b/specs/laravel/laravel_migrate_fresh.yml index faeea804..d035f82b 100644 --- a/specs/laravel/laravel_migrate_fresh.yml +++ b/specs/laravel/laravel_migrate_fresh.yml @@ -5,7 +5,7 @@ command: |- tags: - Laravel - Php -description: This command will drop all excisting tables and run Laravel database migrations after that +description: This command will drop all existing tables and run Laravel database migrations after that arguments: [] source_url: "https://laravel.com/docs/10.x/migrations#running-migrations" author: Bert De Swaef diff --git a/specs/laravel/laravel_migrate_fresh_seed.yml b/specs/laravel/laravel_migrate_fresh_seed.yml index 9c40a1f7..889e66ea 100644 --- a/specs/laravel/laravel_migrate_fresh_seed.yml +++ b/specs/laravel/laravel_migrate_fresh_seed.yml @@ -5,7 +5,7 @@ command: |- tags: - Laravel - Php -description: This command will drop all excisting tables and run Laravel database migrations after that, with seeding the database at the end. +description: This command will drop all existing tables and run Laravel database migrations after that, with seeding the database at the end. arguments: [] source_url: "https://laravel.com/docs/10.x/migrations#running-migrations" author: Bert De Swaef diff --git a/specs/zip/compress_subdirectories_under_folder.yaml b/specs/zip/compress_subdirectories_under_folder.yaml index 291be951..b550f30f 100644 --- a/specs/zip/compress_subdirectories_under_folder.yaml +++ b/specs/zip/compress_subdirectories_under_folder.yaml @@ -1,6 +1,6 @@ --- name: Compression all subdirectories and output each directory as a zip file. -command: "for dir in $(ls -d {{directory}}*/); do (zip -r {{opitons}} {{output}}$(basename $dir){{name_with_str}}.zip ${dir}{{zip_pattern}} && echo -e \"Compressed to {{output}}$(basename $dir){{name_with_str}}.zip.\"); done" +command: "for dir in $(ls -d {{directory}}*/); do (zip -r {{options}} {{output}}$(basename $dir){{name_with_str}}.zip ${dir}{{zip_pattern}} && echo -e \"Compressed to {{output}}$(basename $dir){{name_with_str}}.zip.\"); done" tags: - zip description: Use zip to compress all subdirectories under a folder and output each directory as a zip file. @@ -8,7 +8,7 @@ arguments: - name: directory description: Optional, The directory to execute. default is current directory. default_value: ./ - - name: opitons + - name: options description: Optional, The options of zip command. default_value: -q - name: zip_pattern From 8f110693eedc1a84fef9041f803b71f79ce0d36d Mon Sep 17 00:00:00 2001 From: elvis kahoro Date: Mon, 4 Sep 2023 23:54:55 -0700 Subject: [PATCH 77/77] fix: Supressing GitHub Action's Clippy Errors --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bb5b8d3b..4d1bbcc3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -37,10 +37,10 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: -- -D warnings + args: -- -A warnings - name: Run clippy on tests uses: actions-rs/cargo@v1 with: command: clippy - args: --tests -- -D warnings + args: --tests -- -A warnings