From 70576bad3f084bc5efcdd3590aeb4280ff89d777 Mon Sep 17 00:00:00 2001 From: Mario Finelli Date: Sun, 1 Dec 2024 16:42:26 +0100 Subject: [PATCH] wgo: 0.5.6d (new formula) --- Formula/w/wgo.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Formula/w/wgo.rb diff --git a/Formula/w/wgo.rb b/Formula/w/wgo.rb new file mode 100644 index 000000000000..1b30332b8e04 --- /dev/null +++ b/Formula/w/wgo.rb @@ -0,0 +1,19 @@ +class Wgo < Formula + desc "Live reload for Go apps. Watch arbitrary files and respond with arbitrary commands." + homepage "https://github.com/bokwoon95/wgo" + url "https://github.com/bokwoon95/wgo/archive/refs/tags/v0.5.6d.tar.gz" + sha256 "2c2cdfa06678fe58f6d402d6c088a7b4132a717239b74256dbccf1f3421ae7db" + license "MIT" + + depends_on "go" => :build + + def install + bin.mkpath + system "go", "build", *std_go_args(ldflags: "-s -w"), "-o", bin, "./..." + end + + def test + output = shell_output("#{bin}/wgo -exit echo testing") + assert_match "testing", output + end +end