From 5585d85fce465b402e7aebf6e3c9216f5838ea76 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 23:24:00 -0500 Subject: [PATCH 01/10] ast-grep: remove unneeded completion base_name --- Formula/a/ast-grep.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/a/ast-grep.rb b/Formula/a/ast-grep.rb index c800607f04737..c0102033a3e27 100644 --- a/Formula/a/ast-grep.rb +++ b/Formula/a/ast-grep.rb @@ -21,7 +21,7 @@ def install system "cargo", "install", *std_cargo_args(path: "crates/cli") generate_completions_from_executable(bin/"ast-grep", "completions") - generate_completions_from_executable(bin/"sg", "completions", base_name: "sg") + generate_completions_from_executable(bin/"sg", "completions") end test do From 07c5e9c861bf0aa61b6dc5a13b4b2e02f82044d8 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 23:24:34 -0500 Subject: [PATCH 02/10] bitwarden-cli: remove unneeded completion base_name --- Formula/b/bitwarden-cli.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Formula/b/bitwarden-cli.rb b/Formula/b/bitwarden-cli.rb index 017d1e273656e..4ffc351b606b9 100644 --- a/Formula/b/bitwarden-cli.rb +++ b/Formula/b/bitwarden-cli.rb @@ -41,10 +41,7 @@ def install (node_modules/"argon2/prebuilds/linux-x64/argon2.musl.node").unlink (node_modules/"argon2/prebuilds").each_child { |dir| rm_r(dir) if dir.basename.to_s != "#{os}-#{arch}" } - generate_completions_from_executable( - bin/"bw", "completion", - base_name: "bw", shell_parameter_format: :arg, shells: [:zsh] - ) + generate_completions_from_executable(bin/"bw", "completion", shells: [:zsh], shell_parameter_format: :arg) end test do From 9faf7629144b6659c0493a4a69ad47e2d0b5daff Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 23:25:01 -0500 Subject: [PATCH 03/10] cartridge-cli: remove unneeded completion base_name --- Formula/c/cartridge-cli.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Formula/c/cartridge-cli.rb b/Formula/c/cartridge-cli.rb index 2b08dc58e1735..4fa7a35535b84 100644 --- a/Formula/c/cartridge-cli.rb +++ b/Formula/c/cartridge-cli.rb @@ -24,9 +24,8 @@ def install system "mage", "build" bin.install "cartridge" generate_completions_from_executable(bin/"cartridge", "gen", "completion", - shells: [:bash, :zsh], - shell_parameter_format: :none, - base_name: "cartridge") + shells: [:bash, :zsh], + shell_parameter_format: :none) end test do From b69548f4503b6c41a4ea84408cb0c44d112bc1ed Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 23:25:22 -0500 Subject: [PATCH 04/10] chainloop-cli: remove unneeded completion base_name --- Formula/c/chainloop-cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/c/chainloop-cli.rb b/Formula/c/chainloop-cli.rb index a00416cf91551..1aa08c8168a95 100644 --- a/Formula/c/chainloop-cli.rb +++ b/Formula/c/chainloop-cli.rb @@ -25,7 +25,7 @@ def install system "go", "build", *std_go_args(ldflags:, output: bin/"chainloop"), "./app/cli" - generate_completions_from_executable(bin/"chainloop", "completion", base_name: "chainloop") + generate_completions_from_executable(bin/"chainloop", "completion") end test do From bce08b5745ca45b0ae57a06a839e0555ea7a8c3b Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 23:25:40 -0500 Subject: [PATCH 05/10] cilium-cli: remove unneeded completion base_name --- Formula/c/cilium-cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/c/cilium-cli.rb b/Formula/c/cilium-cli.rb index 3fc75880d661d..9b1a674bb6769 100644 --- a/Formula/c/cilium-cli.rb +++ b/Formula/c/cilium-cli.rb @@ -35,7 +35,7 @@ def install ] system "go", "build", *std_go_args(ldflags:, output: bin/"cilium"), "./cmd/cilium" - generate_completions_from_executable(bin/"cilium", "completion", base_name: "cilium") + generate_completions_from_executable(bin/"cilium", "completion") end test do From aabf3e48cc8d1c32593cc2ecbf5037a71294c253 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 23:26:04 -0500 Subject: [PATCH 06/10] cloudformation-guard: remove unneeded completion base_name --- Formula/c/cloudformation-guard.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/c/cloudformation-guard.rb b/Formula/c/cloudformation-guard.rb index 9ff9529b16c67..c2ccb8871e035 100644 --- a/Formula/c/cloudformation-guard.rb +++ b/Formula/c/cloudformation-guard.rb @@ -20,7 +20,7 @@ class CloudformationGuard < Formula def install system "cargo", "install", *std_cargo_args(path: "guard") - generate_completions_from_executable(bin/"cfn-guard", "completions", "--shell", base_name: "cfn-guard") + generate_completions_from_executable(bin/"cfn-guard", "completions", "--shell") doc.install "docs" doc.install "guard-examples" From 2894ddef9af98d28d5668c303fa1a55c7b6b2046 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 23:26:19 -0500 Subject: [PATCH 07/10] cocogitto: remove unneeded completion base_name --- Formula/c/cocogitto.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/c/cocogitto.rb b/Formula/c/cocogitto.rb index b3f81c0acd4f2..033fdac238706 100644 --- a/Formula/c/cocogitto.rb +++ b/Formula/c/cocogitto.rb @@ -31,7 +31,7 @@ def install ENV["LIBGIT2_NO_VENDOR"] = "1" system "cargo", "install", *std_cargo_args - generate_completions_from_executable(bin/"cog", "generate-completions", base_name: "cog") + generate_completions_from_executable(bin/"cog", "generate-completions") system bin/"cog", "generate-manpages", buildpath man1.install Dir["*.1"] From 83f1f9328dfbd33fbc85d679cf5e3ddb31f8fee4 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 23:26:38 -0500 Subject: [PATCH 08/10] cri-tools: remove unneeded completion base_name --- Formula/c/cri-tools.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/c/cri-tools.rb b/Formula/c/cri-tools.rb index b23361524201f..478ed6954f20c 100644 --- a/Formula/c/cri-tools.rb +++ b/Formula/c/cri-tools.rb @@ -26,7 +26,7 @@ def install system "make", "install", "VERSION=#{version}" end - generate_completions_from_executable(bin/"crictl", "completion", base_name: "crictl") + generate_completions_from_executable(bin/"crictl", "completion") end test do From 9e95a9e8a5d7561ff6628438d7753cfa929ef98e Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 23:27:04 -0500 Subject: [PATCH 09/10] elan-init: remove unneeded completion base_name --- Formula/e/elan-init.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/e/elan-init.rb b/Formula/e/elan-init.rb index 48b23c173a034..1b7997a54372a 100644 --- a/Formula/e/elan-init.rb +++ b/Formula/e/elan-init.rb @@ -53,7 +53,7 @@ def install bin.install_symlink "elan-init" => link end - generate_completions_from_executable(bin/"elan", "completions", base_name: "elan") + generate_completions_from_executable(bin/"elan", "completions") end test do From 419ec76257a36584035b2184b8ff45c8e7881389 Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Thu, 19 Dec 2024 23:27:17 -0500 Subject: [PATCH 10/10] fleet-cli: remove unneeded completion base_name --- Formula/f/fleet-cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/f/fleet-cli.rb b/Formula/f/fleet-cli.rb index 8fd56616353a0..c5d627d52204c 100644 --- a/Formula/f/fleet-cli.rb +++ b/Formula/f/fleet-cli.rb @@ -30,7 +30,7 @@ def install ] system "go", "build", *std_go_args(output: bin/"fleet", ldflags:), "./cmd/fleetcli" - generate_completions_from_executable(bin/"fleet", "completion", base_name: "fleet") + generate_completions_from_executable(bin/"fleet", "completion") end test do