gotify 2.2.0 (new formula)
Closes #90761. Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
41550fe90b
commit
4ad5c7fe39
|
@ -0,0 +1,21 @@
|
|||
class Gotify < Formula
|
||||
desc "Command-line interface for pushing messages to gotify/server"
|
||||
homepage "https://github.com/gotify/cli"
|
||||
url "https://github.com/gotify/cli/archive/refs/tags/v2.2.0.tar.gz"
|
||||
sha256 "d4e6fbc087c6cc4b320b3fcae4c28d65d514b7e55c95e4c0e764abb3a6c94064"
|
||||
license "MIT"
|
||||
head "https://github.com/gotify/cli.git", branch: "master"
|
||||
|
||||
depends_on "go" => :build
|
||||
|
||||
def install
|
||||
system "go", "build", *std_go_args(ldflags: "-X main.Version=#{version}
|
||||
-X main.BuildDate=#{time.iso8601}
|
||||
-X main.Commit=N/A")
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "token is not configured, run 'gotify init'",
|
||||
shell_output("#{bin}/gotify p test", 1)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue