homebrew-core/Formula/wpcli-completion.rb

20 lines
529 B
Ruby
Raw Normal View History

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/v1.1.0.tar.gz"
sha256 "ff67e6fa74e42360b64baf09c559cfcfe55e743cd5f24e43f2b89e99098cb843"
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