# typed: false # frozen_string_literal: true # This file was generated by GoReleaser. DO NOT EDIT. class Sq < Formula desc "sq data wrangler" homepage "https://github.com/neilotoole/sq" version "0.48.12" license "MIT" on_macos do if Hardware::CPU.intel? url "https://github.com/neilotoole/sq/releases/download/v0.48.12/sq-0.48.12-macos-amd64.tar.gz" sha256 "a15f4c7ffcb6b1bdd86a0398fa388fc40e9a20048a682bb52cf612181d3974f5" def install bin.install "sq" bash_completion.install "completions/sq.bash" => "sq" zsh_completion.install "completions/sq.zsh" => "_sq" fish_completion.install "completions/sq.fish" man1.install "manpages/sq.1.gz" end end if Hardware::CPU.arm? url "https://github.com/neilotoole/sq/releases/download/v0.48.12/sq-0.48.12-macos-arm64.tar.gz" sha256 "c4bcdbbb56e59f0e5504694e8d0d63f85795de16ee51ba2fee5394906056a7db" def install bin.install "sq" bash_completion.install "completions/sq.bash" => "sq" zsh_completion.install "completions/sq.zsh" => "_sq" fish_completion.install "completions/sq.fish" man1.install "manpages/sq.1.gz" end end end on_linux do if Hardware::CPU.intel? && Hardware::CPU.is_64_bit? url "https://github.com/neilotoole/sq/releases/download/v0.48.12/sq-0.48.12-linux-amd64.tar.gz" sha256 "865f7d067cb9a1ba5ff68e50b48cbfd91a4b56397f91f6905b4689ee0476b788" def install bin.install "sq" bash_completion.install "completions/sq.bash" => "sq" zsh_completion.install "completions/sq.zsh" => "_sq" fish_completion.install "completions/sq.fish" man1.install "manpages/sq.1.gz" end end if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? url "https://github.com/neilotoole/sq/releases/download/v0.48.12/sq-0.48.12-linux-arm64.tar.gz" sha256 "1e1dc2e1db9aee303ad2798e422cf051ea705b6a5abbb4298a2837d146af5494" def install bin.install "sq" bash_completion.install "completions/sq.bash" => "sq" zsh_completion.install "completions/sq.zsh" => "_sq" fish_completion.install "completions/sq.fish" man1.install "manpages/sq.1.gz" end end end test do system "#{bin}/sq --version" end end