-
Notifications
You must be signed in to change notification settings - Fork 0
/
betctl.rb
74 lines (63 loc) · 2.38 KB
/
betctl.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
73
74
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
require_relative "custom_download_strategy"
class Betctl < Formula
desc ""
homepage ""
version "2.186.0"
on_macos do
on_intel do
url "https://github.com/superbet-group/betting.cli/releases/download/v2.186.0/betctl_2.186.0_macos_x86_64.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "52e759f7fcf86e8ee84f3e083a2b7c005311fc66d0e85edc63f74bcdc3ee279f"
def install
bin.install "betctl"
prefix.install "betctl-p10k.zsh"
generate_completions_from_executable(bin/"betctl", "completion")
end
end
on_arm do
url "https://github.com/superbet-group/betting.cli/releases/download/v2.186.0/betctl_2.186.0_macos_arm64.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "ff1a4a2ddea0f649b07ce0d750c181ce064767590ab6cc9cfe094df0dc4da2f2"
def install
bin.install "betctl"
prefix.install "betctl-p10k.zsh"
generate_completions_from_executable(bin/"betctl", "completion")
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/superbet-group/betting.cli/releases/download/v2.186.0/betctl_2.186.0_linux_x86_64.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "bfefa146bfa0b16e7d6f42486d73b25c97ab11fd14bdec19421e0d53d92f8ee2"
def install
bin.install "betctl"
prefix.install "betctl-p10k.zsh"
generate_completions_from_executable(bin/"betctl", "completion")
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/superbet-group/betting.cli/releases/download/v2.186.0/betctl_2.186.0_linux_arm64.tar.gz", using: GitHubPrivateRepositoryReleaseDownloadStrategy
sha256 "7b08e37919e0dff90fc76fa7910603709bfcae2f713508376796ec6cb4518408"
def install
bin.install "betctl"
prefix.install "betctl-p10k.zsh"
generate_completions_from_executable(bin/"betctl", "completion")
end
end
end
end
def caveats
<<~EOS
To activate powerlevel10k integration, add the following line to .zshrc:
source #{opt_prefix}/betctl-p10k.zsh
Good luck with your testing endeavours :)
EOS
end
test do
system "#{bin}/betctl --help"
end
end