-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstrm.rb
72 lines (59 loc) · 2.24 KB
/
strm.rb
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Strm < Formula
desc "Command Line Interface for https://strmprivacy.io"
homepage "https://strmprivacy.io"
version "3.16.1"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/strmprivacy/cli/releases/download/v3.16.1/strm_darwin_arm64.tar.gz"
sha256 "b81560b39de96234a7c3d0221911262528a43699d68c86abb0d190de9c279899"
def install
bin.install "strm"
end
end
if Hardware::CPU.intel?
url "https://github.com/strmprivacy/cli/releases/download/v3.16.1/strm_darwin_amd64.tar.gz"
sha256 "11f4e93e395e005e8639631820879c502a3524029992c078b376eca410b5920b"
def install
bin.install "strm"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/strmprivacy/cli/releases/download/v3.16.1/strm_linux_amd64.tar.gz"
sha256 "a75e9f337db459139bbc9c4567d472256fa92a194f2f9c5044a6ff9c6b1312a2"
def install
bin.install "strm"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/strmprivacy/cli/releases/download/v3.16.1/strm_linux_arm64.tar.gz"
sha256 "19a3b88b84a24a32e0dc859d44f16e91ac241be6f6811d322c17492f65ede365"
def install
bin.install "strm"
end
end
end
def caveats
<<~EOS
In order to set up auto completion, please follow the instructions below. When you've set up auto completion in the past, you can skip these instructions.
for bash users
add the following line to your .bash_profile or .bashrc:
source <(strm completion bash)
to load completions for each session, execute once:
- Linux users: strm completion bash > /etc/bash_completion.d/strm
- macOS users: strm completion bash > /usr/local/etc/bash_completion.d/strm
for zsh users
ensure that shell completion is enabled, then run (only needs to be done once):
strm completion zsh > "${fpath[1]}/_strm"
for fish users
strm completion fish > ~/.config/fish/completions/strm.fish # or $XDG_CONFIG_HOME instead of ~/.config
EOS
end
test do
system "#{bin}/strm --version"
end
end