mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
25 lines
700 B
Ruby
25 lines
700 B
Ruby
class Agentops < Formula
|
|
desc "Knowledge Flywheel CLI for AI-assisted development"
|
|
homepage "https://github.com/boshu2/agentops"
|
|
url "https://github.com/boshu2/agentops/archive/refs/tags/v1.0.0.tar.gz"
|
|
sha256 "75d5530c909c5f2d512362b1f3de3ed47748c3dfb264174fc5e9480ffc62544d"
|
|
license "Apache-2.0"
|
|
head "https://github.com/boshu2/agentops.git", branch: "main"
|
|
|
|
depends_on "go" => :build
|
|
|
|
def install
|
|
cd "cli" do
|
|
ldflags = %W[
|
|
-s -w
|
|
-X main.version=#{version}
|
|
]
|
|
system "go", "build", *std_go_args(ldflags:, output: bin/"ao"), "./cmd/ao"
|
|
end
|
|
end
|
|
|
|
test do
|
|
assert_match "ao version #{version}", shell_output("#{bin}/ao version")
|
|
end
|
|
end
|