homebrew-core/Formula/wp-cli-completion.rb
Igor Kapkov dd02ed6dea
wp-cli-completion 2.2.0
Closes #40509.

Signed-off-by: Sean Molenaar <smillerdev@me.com>
2019-05-31 09:49:55 +02:00

18 lines
528 B
Ruby

class WpCliCompletion < Formula
desc "Bash completion for Wpcli"
homepage "https://github.com/wp-cli/wp-cli"
url "https://github.com/wp-cli/wp-cli/archive/v2.2.0.tar.gz"
sha256 "c40b7427532b7c42623a23e3537c6440463b0bc5294943bbaa1805cd88c73083"
head "https://github.com/wp-cli/wp-cli.git"
bottle :unneeded
def install
bash_completion.install "utils/wp-completion.bash" => "wp"
end
test do
assert_match "-F _wp_complete",
shell_output("source #{bash_completion}/wp && complete -p wp")
end
end