18 lines
528 B
Ruby
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.0.1.tar.gz"
|
|
sha256 "92f3605721687c9cf6dd505ced00f96ddd4b765f551083e8dc1977f5c71dd9d9"
|
|
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
|