Skip to content

Commit

Permalink
wgo: 0.5.6d (new formula)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfinelli committed Dec 1, 2024
1 parent 303a3af commit 70576ba
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Formula/w/wgo.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 70576ba

Please sign in to comment.