From 8149d076193a5201233d03971e639a665431d64d Mon Sep 17 00:00:00 2001 From: Evan Burkey Date: Mon, 16 Jun 2025 14:00:59 -0700 Subject: [PATCH] homebrew --- Formula/epochcli.rb | 11 +++++------ main.go | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Formula/epochcli.rb b/Formula/epochcli.rb index 429766a..a3f1b72 100644 --- a/Formula/epochcli.rb +++ b/Formula/epochcli.rb @@ -6,14 +6,13 @@ class Epochcli < Formula license "ISC" head "https://git.burkey.co/eburk/epochcli.git", branch: "master" - livecheck do - url :stable - end - depends_on "go" => :build def install - system "go", "build" - bin.install "epochcli" + system "go", "build", *std_go_args(ldflags: "-s -w") + end + + test do + assert_match "Epochcli Help:", shell_output("#{bin}/epochcli -h") end end diff --git a/main.go b/main.go index b2fff96..7c9fcaa 100644 --- a/main.go +++ b/main.go @@ -36,6 +36,7 @@ func main() { if helpFlag { flag.CommandLine.SetOutput(os.Stdout) + fmt.Println("Epochcli Help:") flag.PrintDefaults() os.Exit(0) }