Skip to content

Commit

Permalink
Brew formula update for nocolor version v0.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
goreleaserbot committed Oct 3, 2024
1 parent 661c82d commit 107a331
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions Formula/nocolor.rb
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

0 comments on commit 107a331

Please sign in to comment.