-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brew formula update for nocolor version v0.22.0
- Loading branch information
1 parent
661c82d
commit 107a331
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# typed: false | ||
# frozen_string_literal: true | ||
|
||
# This file was generated by GoReleaser. DO NOT EDIT. | ||
class Nocolor < Formula | ||
desc "Fortio terminal nocolor (and no other ansi code either) filter" | ||
homepage "https://fortio.org/" | ||
version "0.22.0" | ||
license "Apache-2.0" | ||
|
||
on_macos do | ||
on_intel do | ||
url "https://github.com/fortio/terminal/releases/download/v0.22.0/nocolor_0.22.0_darwin_amd64.zip" | ||
sha256 "ed37be6963ddef5ff79ff1180fd8f1fa9c9ef889a7dcd670bd14f0b1d748714e" | ||
|
||
def install | ||
bin.install "nocolor" | ||
end | ||
end | ||
on_arm do | ||
url "https://github.com/fortio/terminal/releases/download/v0.22.0/nocolor_0.22.0_darwin_arm64.zip" | ||
sha256 "b4afea67a150d1fd99c64226baa2d128a2e38a37c454b01a70e9bbbe58934342" | ||
|
||
def install | ||
bin.install "nocolor" | ||
end | ||
end | ||
end | ||
|
||
on_linux do | ||
on_intel do | ||
if Hardware::CPU.is_64_bit? | ||
url "https://github.com/fortio/terminal/releases/download/v0.22.0/nocolor_0.22.0_linux_amd64.tar.gz" | ||
sha256 "6f72af6c8a936cb7a7090b8179dab487d2c9aec19ad5762121b1aa795859071c" | ||
|
||
def install | ||
bin.install "nocolor" | ||
end | ||
end | ||
end | ||
on_arm do | ||
if Hardware::CPU.is_64_bit? | ||
url "https://github.com/fortio/terminal/releases/download/v0.22.0/nocolor_0.22.0_linux_arm64.tar.gz" | ||
sha256 "c4eba4a75713460c6df19ea8e65421a75344aa7658c1f346c1bc547577abfb85" | ||
|
||
def install | ||
bin.install "nocolor" | ||
end | ||
end | ||
end | ||
end | ||
|
||
test do | ||
assert_match version.to_s, shell_output("#{bin}/nocolor -version") | ||
end | ||
end |