Skip to content

Commit d727d41

Browse files
authored
Merge pull request #210335 from Homebrew/otel-cli
otel-cli 0.4.5 (new formula)
2 parents c4be3fe + 080db1e commit d727d41

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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

0 commit comments

Comments
 (0)