-
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.2"
depends_on "fzf"
depends_on "yq"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/oslokommune/ok/releases/download/v5.4.2/ok_5.4.2_darwin_amd64.tar.gz"
sha256 "c0e4d5b91c42ba7cb2f300c7747c65e9836fe885de760de4ffbeeac75563f967"
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.2/ok_5.4.2_darwin_arm64.tar.gz"
sha256 "417c13ea388ce32bb7f6566f0319ab8c06212ff67250f6ae3dfb4af8dc41c5c4"
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.2/ok_5.4.2_linux_amd64.tar.gz"
sha256 "2956cc0ff217e80a893e86c4ceeaca2a97d7b4ce04b9e19328e9408b55c21db7"
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.2/ok_5.4.2_linux_arm64.tar.gz"
sha256 "299d22d58c77030819efe6cd8b4d8181fe04e38ba1b087ff238449a7ba707b74"
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