homebrew-core/Formula/wp-cli-completion.rb
2019-01-07 11:26:37 +11: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.1.0.tar.gz"
sha256 "0e0a94244a233e4cb75fcbbc60abb9b18b475c23d1f27c5b9d76b17fb534c358"
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