Skip to content

Commit ec2b40a

Browse files
committed
Restrict denvig-alpha completions to zsh with no shell suffix
In 0.7.0, 'denvig zsh completions' rejects extra arguments. The default generate_completions_from_executable iterates over bash/zsh/fish and appends the shell name, producing 'denvig zsh completions bash' which errors. Pin shells to zsh only and use shell_parameter_format :none so the command runs as 'denvig zsh completions'.
1 parent e54c359 commit ec2b40a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Formula/denvig-alpha.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def install
2020
system "npm", "install", *std_npm_args
2121
bin.install_symlink libexec.glob("bin/*")
2222

23-
generate_completions_from_executable(bin/"denvig", "zsh", "completions")
23+
generate_completions_from_executable(bin/"denvig", "zsh", "completions", shells: [:zsh], shell_parameter_format: :none)
2424
end
2525

2626
test do

0 commit comments

Comments
 (0)