Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goasitop v0.1.2 (new formula) #169753

Closed
wants to merge 13 commits into from
21 changes: 21 additions & 0 deletions Formula/g/goasitop.rb
@@ -0,0 +1,21 @@
class Goasitop < Formula
desc "Apple Silicon Monitor Top written in Go Lang"
homepage "https://github.com/context-labs/goasitop"
url "https://github.com/context-labs/goasitop/archive/refs/tags/v0.1.2.tar.gz"
sha256 "ce583ba1434589544cb7e1049ce24123a66c6e0b715c43fe3d0e98642d393be5"
license "MIT"

depends_on "go" => :build
# Restrict formula to macOS on Apple Silicon only
depends_on arch: :arm64
depends_on :macos

def install
system "go", "build", *std_go_args
end

test do
test_input = "This is a test input for brew"
assert_match "Test input received: #{test_input}", shell_output("#{bin}/goasitop --test '#{test_input}'")
end
end