1 Commits

Author SHA1 Message Date
8149d07619 homebrew 2025-06-16 14:00:59 -07:00
2 changed files with 6 additions and 6 deletions

View File

@ -6,14 +6,13 @@ class Epochcli < Formula
license "ISC" license "ISC"
head "https://git.burkey.co/eburk/epochcli.git", branch: "master" head "https://git.burkey.co/eburk/epochcli.git", branch: "master"
livecheck do
url :stable
end
depends_on "go" => :build depends_on "go" => :build
def install def install
system "go", "build" system "go", "build", *std_go_args(ldflags: "-s -w")
bin.install "epochcli" end
test do
assert_match "Epochcli Help:", shell_output("#{bin}/epochcli -h")
end end
end end

View File

@ -36,6 +36,7 @@ func main() {
if helpFlag { if helpFlag {
flag.CommandLine.SetOutput(os.Stdout) flag.CommandLine.SetOutput(os.Stdout)
fmt.Println("Epochcli Help:")
flag.PrintDefaults() flag.PrintDefaults()
os.Exit(0) os.Exit(0)
} }