File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-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+ 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
You can’t perform that action at this time.
0 commit comments