File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments