File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -2528,6 +2528,7 @@ osmium-tool
25282528ospray
25292529osslsigncode
25302530osv-scanner
2531+ otel-cli
25312532otree
25322533ots
25332534ott
Original file line number Diff line number Diff line change 1+ class OtelCli < Formula
2+ desc "Tool for sending events from shell scripts & similar environments"
3+ homepage "https://github.com/equinix-labs/otel-cli"
4+ url "https://github.com/equinix-labs/otel-cli/archive/refs/tags/v0.4.5.tar.gz"
5+ sha256 "331a76783974318a31d9ab06e3f05af488e0ede3cce989f8d1b634450a345536"
6+ license "Apache-2.0"
7+ head "https://github.com/equinix-labs/otel-cli.git" , branch : "main"
8+
9+ bottle do
10+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "9ae87c2f9fafe21f6f99739e0d86b3e0f1d70bb75c355e434f911d58150e1f01"
11+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "9ae87c2f9fafe21f6f99739e0d86b3e0f1d70bb75c355e434f911d58150e1f01"
12+ sha256 cellar : :any_skip_relocation , arm64_ventura : "9ae87c2f9fafe21f6f99739e0d86b3e0f1d70bb75c355e434f911d58150e1f01"
13+ sha256 cellar : :any_skip_relocation , sonoma : "8184d3d001f134321d8d3ceb6ea5b29d61bf134b189ae9206e275010a0f9c6c8"
14+ sha256 cellar : :any_skip_relocation , ventura : "8184d3d001f134321d8d3ceb6ea5b29d61bf134b189ae9206e275010a0f9c6c8"
15+ sha256 cellar : :any_skip_relocation , x86_64_linux : "cb6e8b16d5493b5443bced5761cfeed0322e32d2cb043f83ac4626e5c80a4d22"
16+ end
17+
18+ depends_on "go" => :build
19+
20+ def install
21+ ldflags = "-s -w -X main.version=#{ version } -X main.commit=#{ tap . user } -X main.date=#{ time . iso8601 } "
22+ system "go" , "build" , *std_go_args ( ldflags :)
23+
24+ generate_completions_from_executable ( bin /"otel-cli" , "completion" )
25+ end
26+
27+ test do
28+ output = shell_output ( "#{ bin } /otel-cli status" )
29+ assert_equal "otel-cli" , JSON . parse ( output ) [ "config" ] [ "service_name" ]
30+ end
31+ end
You can’t perform that action at this time.
0 commit comments