30 lines
1.7 KiB
Ruby
30 lines
1.7 KiB
Ruby
class SpringCompletion < Formula
|
|
desc "Bash completion for Spring"
|
|
homepage "https://github.com/jacaetevha/spring_bash_completion"
|
|
url "https://github.com/jacaetevha/spring_bash_completion/archive/v0.0.1.tar.gz"
|
|
sha256 "a97b256dbdaca894dfa22bd96a6705ebf4f94fa8206d05f41927f062c3dd60bf"
|
|
license "Unlicense"
|
|
head "https://github.com/jacaetevha/spring_bash_completion.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_ventura: "cff62b143ba4126ebde03eca3822b4e1b3af6977a3a26b798d94286fd423cf47"
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "bd4aeec3cfd7ef58699e3db575729670c459ed5476a65b717c8ffae6ac8850c3"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "5c188dbaccd58b79b5596c7d0c34cd3a1a997cea7f6131393b11205a77964c2a"
|
|
sha256 cellar: :any_skip_relocation, ventura: "b1f3a43b9632e6fcfd30bdfa4d4287867af9370989ee297caafcd3051a6faccd"
|
|
sha256 cellar: :any_skip_relocation, monterey: "c7c179b4ccf46a0ab7fcd3a300f0b3c1d630e6b450ba4b367c65abd4a9b4d25b"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "1110b2611a3d8dc08fe1731e46692b9d77234e60aba14602f0ad1f9380933eeb"
|
|
sha256 cellar: :any_skip_relocation, catalina: "1110b2611a3d8dc08fe1731e46692b9d77234e60aba14602f0ad1f9380933eeb"
|
|
sha256 cellar: :any_skip_relocation, mojave: "1110b2611a3d8dc08fe1731e46692b9d77234e60aba14602f0ad1f9380933eeb"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "cff62b143ba4126ebde03eca3822b4e1b3af6977a3a26b798d94286fd423cf47"
|
|
end
|
|
|
|
def install
|
|
bash_completion.install "spring.bash" => "spring"
|
|
end
|
|
|
|
test do
|
|
assert_match "-F _spring",
|
|
shell_output("bash -c 'source #{bash_completion}/spring && complete -p spring'")
|
|
end
|
|
end
|