-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwarp.rb
More file actions
29 lines (24 loc) · 845 Bytes
/
warp.rb
File metadata and controls
29 lines (24 loc) · 845 Bytes
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
class Warp < Formula
desc "Beautiful CLI for Cloudflare WARP - Control your VPN from the terminal"
homepage "https://github.com/zero8dotdev/warp-cli"
url "https://github.com/zero8dotdev/warp-cli/archive/refs/tags/v0.1.0.tar.gz"
sha256 "placeholder_sha256"
license "MIT"
head "https://github.com/zero8dotdev/warp-cli.git", branch: "main"
depends_on "rust" => :build
def install
system "cargo", "build", "--release"
bin.install "target/release/warp"
end
def caveats
<<~EOS
Cloudflare WARP app must be installed first:
brew install --cask cloudflare-warp
Or download from: https://apps.apple.com/app/cloudflare-warp/id1423210915
EOS
end
test do
assert_match "warp", shell_output("#{bin}/warp --version")
assert_match "Commands:", shell_output("#{bin}/warp --help")
end
end