homebrew-core/Formula/wpcli-completion.rb
ilovezfs ccb0aad93d wpcli-completion 1.1.0
Closes #9565.

Signed-off-by: Tomasz Pajor <tomek@polishgeeks.com>
2017-02-02 15:39:55 +01:00

19 lines
529 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/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