-
Notifications
You must be signed in to change notification settings - Fork 0
/
posh.rb
57 lines (49 loc) · 1.46 KB
/
posh.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Posh < Formula
desc "Project Oriented SHELL"
homepage "https://github.com/foomo/posh"
version "0.8.5"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/foomo/posh/releases/download/v0.8.5/posh_0.8.5_darwin_amd64.tar.gz"
sha256 "db1fb94b499f39c7a27a28e477cb90735597a971e202e04226ea91eccdc97cbb"
def install
bin.install "posh"
end
end
if Hardware::CPU.arm?
url "https://github.com/foomo/posh/releases/download/v0.8.5/posh_0.8.5_darwin_arm64.tar.gz"
sha256 "e8ec1111129eb38f9694d4dff26ed3d681f5247a45c33b708dfd27cb56d6df8f"
def install
bin.install "posh"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/posh/releases/download/v0.8.5/posh_0.8.5_linux_amd64.tar.gz"
sha256 "7d93ecf3835a7846e4530cdc2a38d447174c81b5f20c416eae4ff054ae4a17c9"
def install
bin.install "posh"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/foomo/posh/releases/download/v0.8.5/posh_0.8.5_linux_arm64.tar.gz"
sha256 "69f6950304a624abb34014603de3dee4cf14b8c87fb00d422fe548175f3ce10f"
def install
bin.install "posh"
end
end
end
end
def caveats
<<~EOS
posh help
EOS
end
end