Skip to content

Commit 28d0cfe

Browse files
committed
vgo 0.2.0 (new formula)
Signed-off-by: Rui Chen <[email protected]>
1 parent c725463 commit 28d0cfe

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Formula/v/vgo.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class Vgo < Formula
2+
desc "Project scaffolder for Go, written in Go"
3+
homepage "https://github.com/vg006/vgo"
4+
url "https://github.com/vg006/vgo/archive/refs/tags/v0.2.0.tar.gz"
5+
sha256 "3a2fee499c91225f2abe1acdb8a640560cda6f4364f4b1aff04756d8ada6282d"
6+
license "MIT"
7+
head "https://github.com/vg006/vgo.git", branch: "main"
8+
9+
depends_on "go" => :build
10+
11+
def install
12+
system "go", "build", *std_go_args(ldflags: "-s -w")
13+
14+
generate_completions_from_executable(bin/"vgo", "completion")
15+
end
16+
17+
test do
18+
expected = if OS.mac?
19+
"Failed to build the vgo tool"
20+
else
21+
"┃ ✔ Built vgo\n┃ ✔ Installed vgo"
22+
end
23+
assert_match expected, shell_output("#{bin}/vgo build 2>&1")
24+
end
25+
end

0 commit comments

Comments
 (0)