From 08aaae18228943a13a3775b7ce7caecea4261bda Mon Sep 17 00:00:00 2001 From: Branch Vincent Date: Tue, 11 Jul 2023 19:28:05 -0700 Subject: [PATCH] jrsonnet: merge completion generators --- Formula/jrsonnet.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Formula/jrsonnet.rb b/Formula/jrsonnet.rb index c57ca5bb7824d..62eb8604c211d 100644 --- a/Formula/jrsonnet.rb +++ b/Formula/jrsonnet.rb @@ -26,16 +26,8 @@ class Jrsonnet < Formula depends_on "rust" => :build def install - cd "cmds/jrsonnet" do - system "cargo", "install", *std_cargo_args - end - - generate_completions_from_executable(bin/"jrsonnet", "--generate", "bash", "-", - shells: [:bash], shell_parameter_format: :none) - generate_completions_from_executable(bin/"jrsonnet", "--generate", "zsh", "-", - shells: [:zsh], shell_parameter_format: :none) - generate_completions_from_executable(bin/"jrsonnet", "--generate", "fish", "-", - shells: [:fish], shell_parameter_format: :none) + system "cargo", "install", *std_cargo_args(path: "cmds/jrsonnet") + generate_completions_from_executable(bin/"jrsonnet", "-", "--generate") end test do