homebrew-core/Formula/wp-cli-completion.rb
Baptiste Fontaine 7663d7b516 wp-cli-completion 2.3.0
Closes #45159.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-10-11 12:58:01 +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.3.0.tar.gz"
sha256 "316096eec59654f1ab473ef53c7a0172b0d286be0c6238332b7ab731069c30c1"
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