# typed: false # frozen_string_literal: true # DO NOT EDIT, it's a script generated class Snazy < Formula desc "snazy - a snazzy json log viewer" homepage "https://github.com/chmouel/snazy" version "0.53.1" on_macos do url "https://github.com/chmouel/snazy/releases/download/0.53.1/snazy-v0.53.1-macos.tar.gz" sha256 "c889adf13731df76ca7a82cbe3c1930c413e6f6d5c1bce5373dc9d8a843f50b7" def install bin.install "snazy" => "snazy" prefix.install_metafiles output = Utils.popen_read("SHELL=bash #{bin}/snazy --shell-completion bash") (bash_completion/"snazy").write output output = Utils.popen_read("SHELL=zsh #{bin}/snazy --shell-completion zsh") (zsh_completion/"_snazy").write output output = Utils.popen_read("SHELL=fish #{bin}/snazy --shell-completion fish") (fish_completion/"snazy.fish").write output end end on_linux do if Hardware::CPU.intel? url "https://github.com/chmouel/snazy/releases/download/0.53.1/snazy-v0.53.1-linux-amd64.tar.gz" sha256 "4fc89c9000c71510ab0b1242dc3da7a6c779d3e084ff5ee1e836c38095d49a21" def install bin.install "snazy" => "snazy" prefix.install_metafiles output = Utils.popen_read("SHELL=bash #{bin}/snazy --shell-completion bash") (bash_completion/"snazy").write output output = Utils.popen_read("SHELL=zsh #{bin}/snazy --shell-completion zsh") (zsh_completion/"_snazy").write output output = Utils.popen_read("SHELL=fish #{bin}/snazy --shell-completion fish") (fish_completion/"snazy.fish").write output end end if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? url "https://github.com/chmouel/snazy/releases/download/0.53.1/snazy-v0.53.1-linux-arm64.tar.gz" sha256 "3ba2e44055a1e4709f4836775849f4853798bf8b4781fd77bf8d2c9eb3666c6a" def install bin.install "snazy" => "snazy" prefix.install_metafiles output = Utils.popen_read("SHELL=bash #{bin}/snazy --shell-completion bash") (bash_completion/"snazy").write output output = Utils.popen_read("SHELL=zsh #{bin}/snazy --shell-completion zsh") (zsh_completion/"_snazy").write output output = Utils.popen_read("SHELL=fish #{bin}/snazy --shell-completion fish") (fish_completion/"snazy.fish").write output end end end end