-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Expand file tree
/
Copy pathpup.rb
More file actions
35 lines (29 loc) 路 1.51 KB
/
Copy pathpup.rb
File metadata and controls
35 lines (29 loc) 路 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class Pup < Formula
desc "CLI companion with 200+ commands across 33+ Datadog products"
homepage "https://www.datadoghq.com"
url "https://github.com/DataDog/pup/archive/refs/tags/v1.10.5.tar.gz"
sha256 "d011d7752634221b8168aa9f1fe1bc289be54c8d485ffd77a5d6b2d917a3d769"
license "Apache-2.0"
head "https://github.com/DataDog/pup.git", branch: "main"
bottle do
sha256 cellar: :any_skip_relocation, arm64_tahoe: "e35678ded2317fa7f365af5a4cf460e7be214b5d74757ec4d65564a9080fbc44"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "a58e2f71f393c1ca975c060fd5a87a9a5a86582f1b026bf222991a2aa062bf88"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "6224eb7221ef2d8e8bfdd85839254b5efe73c1c7b70ebc79e0924008186fd497"
sha256 cellar: :any_skip_relocation, sonoma: "62ddfdd84b37647d2719c4cbaf3b51ab0fbf3b7416fedeb20ef92ff463f23220"
sha256 cellar: :any, arm64_linux: "956b82730d3014024b78773f8f8d0b8c723c7b87bfac3b3b1c4c3c3b679dd8f2"
sha256 cellar: :any, x86_64_linux: "c5c616b44a23661c7d33e27f524d30936c27dd1b368e4f53c82bddd6b424c23f"
end
depends_on "pkgconf" => :build
depends_on "rust" => :build
on_linux do
depends_on "openssl@4"
end
def install
system "cargo", "install", *std_cargo_args
generate_completions_from_executable(bin/"pup", "completions")
end
test do
assert_match version.to_s, shell_output("#{bin}/pup --version")
assert_match "Use pup CLI or generate code", shell_output("#{bin}/pup skills list")
end
end