-
Notifications
You must be signed in to change notification settings - Fork 0
/
nctl.rb
64 lines (57 loc) · 2.14 KB
/
nctl.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Nctl < Formula
desc "Interact with Nine API resources."
homepage "https://github.com/ninech/nctl"
version "1.8.0"
license "Apache 2.0"
on_macos do
on_intel do
url "https://github.com/ninech/nctl/releases/download/v1.8.0/nctl_1.8.0_darwin_amd64.tar.gz"
sha256 "bd60d6721df4a824604cb019b32bd8b5ed56e7e81f18ada429b72bdb2c2dc7bf"
def install
bin.install "nctl"
bash_completion.install "completions/nctl.bash" => "nctl"
zsh_completion.install "completions/nctl.zsh" => "_nctl"
fish_completion.install "completions/nctl.fish"
end
end
on_arm do
url "https://github.com/ninech/nctl/releases/download/v1.8.0/nctl_1.8.0_darwin_arm64.tar.gz"
sha256 "5324886e0553e58b828448b781e60db83790294241f30a50c78620e633868ffd"
def install
bin.install "nctl"
bash_completion.install "completions/nctl.bash" => "nctl"
zsh_completion.install "completions/nctl.zsh" => "_nctl"
fish_completion.install "completions/nctl.fish"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/ninech/nctl/releases/download/v1.8.0/nctl_1.8.0_linux_amd64.tar.gz"
sha256 "0f4ff7de520092c301c4383d40d3eccb0025ec85d25898d346bfc2df2e61d0da"
def install
bin.install "nctl"
bash_completion.install "completions/nctl.bash" => "nctl"
zsh_completion.install "completions/nctl.zsh" => "_nctl"
fish_completion.install "completions/nctl.fish"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/ninech/nctl/releases/download/v1.8.0/nctl_1.8.0_linux_arm64.tar.gz"
sha256 "e0a77a9696eeb5d4c4200516257c70ce72c2cb7b48d527fa10e13ea782e5e290"
def install
bin.install "nctl"
bash_completion.install "completions/nctl.bash" => "nctl"
zsh_completion.install "completions/nctl.zsh" => "_nctl"
fish_completion.install "completions/nctl.fish"
end
end
end
end
end