22 lines
656 B
Ruby
22 lines
656 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.4.1.tar.gz"
|
|
sha256 "95adcbe26908605104454d9eb1e35b48d2f3ccb530807e38dd970230a09d7254"
|
|
license "MIT"
|
|
head "https://github.com/wp-cli/wp-cli.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "145f9334a1d1c301614904ea234d44f4614ea3a45f5b287e71f114f45737f87f"
|
|
end
|
|
|
|
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
|