Skip to content

Commit c72a221

Browse files
committed
otel-cli 0.4.5 (new formula)
Signed-off-by: Rui Chen <[email protected]>
1 parent c7c3e8c commit c72a221

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,6 +2528,7 @@ osmium-tool
25282528
ospray
25292529
osslsigncode
25302530
osv-scanner
2531+
otel-cli
25312532
otree
25322533
ots
25332534
ott

Formula/o/otel-cli.rb

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
depends_on "go" => :build
10+
11+
def install
12+
ldflags = "-s -w -X main.version=#{version} -X main.commit=#{tap.user} -X main.date=#{time.iso8601}"
13+
system "go", "build", *std_go_args(ldflags:)
14+
15+
generate_completions_from_executable(bin/"otel-cli", "completion")
16+
end
17+
18+
test do
19+
output = shell_output("#{bin}/otel-cli status")
20+
assert_equal "otel-cli", JSON.parse(output)["config"]["service_name"]
21+
end
22+
end

0 commit comments

Comments
 (0)