Skip to content

Commit 425bbfa

Browse files
authored
Merge pull request Homebrew#201871 from Homebrew/remove-base_name
formulae: remove unneeded completion base_name
2 parents decb127 + 419ec76 commit 425bbfa

File tree

10 files changed

+11
-15
lines changed

10 files changed

+11
-15
lines changed

Formula/a/ast-grep.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def install
2121
system "cargo", "install", *std_cargo_args(path: "crates/cli")
2222

2323
generate_completions_from_executable(bin/"ast-grep", "completions")
24-
generate_completions_from_executable(bin/"sg", "completions", base_name: "sg")
24+
generate_completions_from_executable(bin/"sg", "completions")
2525
end
2626

2727
test do

Formula/b/bitwarden-cli.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@ def install
4141
(node_modules/"argon2/prebuilds/linux-x64/argon2.musl.node").unlink
4242
(node_modules/"argon2/prebuilds").each_child { |dir| rm_r(dir) if dir.basename.to_s != "#{os}-#{arch}" }
4343

44-
generate_completions_from_executable(
45-
bin/"bw", "completion",
46-
base_name: "bw", shell_parameter_format: :arg, shells: [:zsh]
47-
)
44+
generate_completions_from_executable(bin/"bw", "completion", shells: [:zsh], shell_parameter_format: :arg)
4845
end
4946

5047
test do

Formula/c/cartridge-cli.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ def install
2424
system "mage", "build"
2525
bin.install "cartridge"
2626
generate_completions_from_executable(bin/"cartridge", "gen", "completion",
27-
shells: [:bash, :zsh],
28-
shell_parameter_format: :none,
29-
base_name: "cartridge")
27+
shells: [:bash, :zsh],
28+
shell_parameter_format: :none)
3029
end
3130

3231
test do

Formula/c/chainloop-cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def install
2525

2626
system "go", "build", *std_go_args(ldflags:, output: bin/"chainloop"), "./app/cli"
2727

28-
generate_completions_from_executable(bin/"chainloop", "completion", base_name: "chainloop")
28+
generate_completions_from_executable(bin/"chainloop", "completion")
2929
end
3030

3131
test do

Formula/c/cilium-cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def install
3535
]
3636
system "go", "build", *std_go_args(ldflags:, output: bin/"cilium"), "./cmd/cilium"
3737

38-
generate_completions_from_executable(bin/"cilium", "completion", base_name: "cilium")
38+
generate_completions_from_executable(bin/"cilium", "completion")
3939
end
4040

4141
test do

Formula/c/cloudformation-guard.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class CloudformationGuard < Formula
2020
def install
2121
system "cargo", "install", *std_cargo_args(path: "guard")
2222

23-
generate_completions_from_executable(bin/"cfn-guard", "completions", "--shell", base_name: "cfn-guard")
23+
generate_completions_from_executable(bin/"cfn-guard", "completions", "--shell")
2424

2525
doc.install "docs"
2626
doc.install "guard-examples"

Formula/c/cocogitto.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def install
3131
ENV["LIBGIT2_NO_VENDOR"] = "1"
3232

3333
system "cargo", "install", *std_cargo_args
34-
generate_completions_from_executable(bin/"cog", "generate-completions", base_name: "cog")
34+
generate_completions_from_executable(bin/"cog", "generate-completions")
3535

3636
system bin/"cog", "generate-manpages", buildpath
3737
man1.install Dir["*.1"]

Formula/c/cri-tools.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def install
2626
system "make", "install", "VERSION=#{version}"
2727
end
2828

29-
generate_completions_from_executable(bin/"crictl", "completion", base_name: "crictl")
29+
generate_completions_from_executable(bin/"crictl", "completion")
3030
end
3131

3232
test do

Formula/e/elan-init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def install
5353
bin.install_symlink "elan-init" => link
5454
end
5555

56-
generate_completions_from_executable(bin/"elan", "completions", base_name: "elan")
56+
generate_completions_from_executable(bin/"elan", "completions")
5757
end
5858

5959
test do

Formula/f/fleet-cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def install
3030
]
3131
system "go", "build", *std_go_args(output: bin/"fleet", ldflags:), "./cmd/fleetcli"
3232

33-
generate_completions_from_executable(bin/"fleet", "completion", base_name: "fleet")
33+
generate_completions_from_executable(bin/"fleet", "completion")
3434
end
3535

3636
test do

0 commit comments

Comments
 (0)