-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathok.rb
66 lines (58 loc) · 2.14 KB
/
ok.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Ok < Formula
desc "A CLI called ok"
homepage "https://github.com/oslokommune/ok"
version "5.4.4"
depends_on "fzf"
depends_on "yq"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/oslokommune/ok/releases/download/v5.4.4/ok_5.4.4_darwin_amd64.tar.gz"
sha256 "c6fc65d88c30d47d4383c5f3e8ef1f17f8d5d6041b948eb56f2dd5200f76ee23"
def install
bin.install "ok"
bash_completion.install "completions/ok.bash" => "ok"
zsh_completion.install "completions/ok.zsh" => "_ok"
fish_completion.install "completions/ok.fish"
end
end
if Hardware::CPU.arm?
url "https://github.com/oslokommune/ok/releases/download/v5.4.4/ok_5.4.4_darwin_arm64.tar.gz"
sha256 "0e8bd3a6c6dfbeaa7a0995f13e1701d52f7059b7a62c3e449a328cf58e1d712f"
def install
bin.install "ok"
bash_completion.install "completions/ok.bash" => "ok"
zsh_completion.install "completions/ok.zsh" => "_ok"
fish_completion.install "completions/ok.fish"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/oslokommune/ok/releases/download/v5.4.4/ok_5.4.4_linux_amd64.tar.gz"
sha256 "952ca5064baa9c9713cca55836a84e3a0de51fc0d9793ce13c2fd1ff0acb983b"
def install
bin.install "ok"
bash_completion.install "completions/ok.bash" => "ok"
zsh_completion.install "completions/ok.zsh" => "_ok"
fish_completion.install "completions/ok.fish"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/oslokommune/ok/releases/download/v5.4.4/ok_5.4.4_linux_arm64.tar.gz"
sha256 "eebfe6a2987ff2800fb2451ba7ae9698bca7ac32e9db901416fd8a8c2488698a"
def install
bin.install "ok"
bash_completion.install "completions/ok.bash" => "ok"
zsh_completion.install "completions/ok.zsh" => "_ok"
fish_completion.install "completions/ok.fish"
end
end
end
end
end