-
Notifications
You must be signed in to change notification settings - Fork 9
/
go-task.rb
81 lines (72 loc) · 2.71 KB
/
go-task.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class GoTask < Formula
desc "Task runner / simpler Make alternative written in Go"
homepage "https://taskfile.dev"
version "3.40.1"
license "MIT"
on_macos do
on_intel do
url "https://github.com/go-task/task/releases/download/v3.40.1/task_darwin_amd64.tar.gz"
sha256 "c3c55c44aee675e30f3e16cdd6e4c17ded38bb5118800ace321425e31c410a01"
def install
bin.install "task"
bash_completion.install "completion/bash/task.bash" => "task"
zsh_completion.install "completion/zsh/_task" => "_task"
fish_completion.install "completion/fish/task.fish"
end
end
on_arm do
url "https://github.com/go-task/task/releases/download/v3.40.1/task_darwin_arm64.tar.gz"
sha256 "b729effcfdd583424e30f58033cbf31a8fa629c1e50c8f90326a06d7ef525154"
def install
bin.install "task"
bash_completion.install "completion/bash/task.bash" => "task"
zsh_completion.install "completion/zsh/_task" => "_task"
fish_completion.install "completion/fish/task.fish"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/go-task/task/releases/download/v3.40.1/task_linux_amd64.tar.gz"
sha256 "a35462ec71410cccfc428072de830e4478bc57a919d0131ef7897759270dff8f"
def install
bin.install "task"
bash_completion.install "completion/bash/task.bash" => "task"
zsh_completion.install "completion/zsh/_task" => "_task"
fish_completion.install "completion/fish/task.fish"
end
end
end
on_arm do
if !Hardware::CPU.is_64_bit?
url "https://github.com/go-task/task/releases/download/v3.40.1/task_linux_arm.tar.gz"
sha256 "e5b0261e9f6563ce3ace9e038520eb59d2c77c8d85f2b47ab41e1fe7cf321528"
def install
bin.install "task"
bash_completion.install "completion/bash/task.bash" => "task"
zsh_completion.install "completion/zsh/_task" => "_task"
fish_completion.install "completion/fish/task.fish"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/go-task/task/releases/download/v3.40.1/task_linux_arm64.tar.gz"
sha256 "17f325293d08f6f964e0530842e9ef1410dd5f83ee6475b493087391032b0cfd"
def install
bin.install "task"
bash_completion.install "completion/bash/task.bash" => "task"
zsh_completion.install "completion/zsh/_task" => "_task"
fish_completion.install "completion/fish/task.fish"
end
end
end
end
test do
system "#{bin}/task", "--help"
end
end