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

View File

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