22 lines
693 B
Ruby
22 lines
693 B
Ruby
class OpenCompletion < Formula
|
|
desc "Bash completion for open"
|
|
homepage "https://github.com/moshen/open-bash-completion"
|
|
url "https://github.com/moshen/open-bash-completion/archive/v1.0.4.tar.gz"
|
|
sha256 "23a8a30f9f65f5b3eb60aa6f2d1c60d7d0a858ea753a58f31ddb51d40e16b668"
|
|
license "MIT"
|
|
head "https://github.com/moshen/open-bash-completion.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "5ea91a3335f030fb57487c30aa307dee22587db31ff801bb7bc6a121775ba579"
|
|
end
|
|
|
|
def install
|
|
bash_completion.install "open"
|
|
end
|
|
|
|
test do
|
|
assert_match "-F _open",
|
|
shell_output("bash -c 'source #{bash_completion}/open && complete -p open'")
|
|
end
|
|
end
|