From 107a3313df42f686299fb26c857b12d2fe7375a9 Mon Sep 17 00:00:00 2001 From: goreleaserbot Date: Thu, 3 Oct 2024 13:51:41 -0700 Subject: [PATCH] Brew formula update for nocolor version v0.22.0 --- Formula/nocolor.rb | 56 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Formula/nocolor.rb diff --git a/Formula/nocolor.rb b/Formula/nocolor.rb new file mode 100644 index 0000000..362b6fa --- /dev/null +++ b/Formula/nocolor.rb @@ -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