-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.rb
More file actions
54 lines (48 loc) · 1.8 KB
/
Copy pathcli.rb
File metadata and controls
54 lines (48 loc) · 1.8 KB
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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Cli < Formula
desc "CLI for Alpaca Trading API"
homepage "https://github.com/alpacahq/cli"
version "0.0.14"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/alpacahq/cli/releases/download/v0.0.14/cli_0.0.14_darwin_amd64.tar.gz"
sha256 "9b2a420b6a3e2e0dbaf408d14c8ef1b9e01608764c84bf479e2839bca2f41246"
define_method(:install) do
bin.install "alpaca"
generate_completions_from_executable(bin/"alpaca", "completion")
end
end
if Hardware::CPU.arm?
url "https://github.com/alpacahq/cli/releases/download/v0.0.14/cli_0.0.14_darwin_arm64.tar.gz"
sha256 "142b26997157748e6db4146133f63066c29ef18be5857eae4b05f9d3157ccfd5"
define_method(:install) do
bin.install "alpaca"
generate_completions_from_executable(bin/"alpaca", "completion")
end
end
end
on_linux do
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/alpacahq/cli/releases/download/v0.0.14/cli_0.0.14_linux_amd64.tar.gz"
sha256 "6c82ef31f94dd61aae1c90e40fc41fdfaf8111bd50e9a2780b9d8d304eb2ba66"
define_method(:install) do
bin.install "alpaca"
generate_completions_from_executable(bin/"alpaca", "completion")
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/alpacahq/cli/releases/download/v0.0.14/cli_0.0.14_linux_arm64.tar.gz"
sha256 "621270e2b935dbae587e6ae05fe04a10bc178b4c9c638961a3d0214568ff2617"
define_method(:install) do
bin.install "alpaca"
generate_completions_from_executable(bin/"alpaca", "completion")
end
end
end
test do
system bin/"alpaca", "version"
end
end