gotify 2.2.0 (new formula)

Closes #90761.

Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Yannic Haupenthal 2021-12-09 13:33:50 +07:00 committed by BrewTestBot
parent 41550fe90b
commit 4ad5c7fe39
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 21 additions and 0 deletions

21
Formula/gotify.rb Normal file
View File

@ -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