# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Kubeprompt < Formula
  desc "K8S information in your prompt"
  homepage "https://github.com/jlesquembre/kubeprompt"
  version "0.4.0"

  on_macos do
    if Hardware::CPU.intel?
      url "https://github.com/jlesquembre/kubeprompt/releases/download/0.4.0/kubeprompt_Darwin_x86_64.tar.gz"
      sha256 "869627a40e3af455f669ff667bd54fd19cfc8ec0a736dcd4977da0a788ff076b"

      def install
        bin.install "kubeprompt"
      end
    end
  end

  on_linux do
    if Hardware::CPU.intel?
      url "https://github.com/jlesquembre/kubeprompt/releases/download/0.4.0/kubeprompt_Linux_x86_64.tar.gz"
      sha256 "b359ab77e10040bb539adfdaccecb91e8548283f2ee0303800140044dbc0aa4a"

      def install
        bin.install "kubeprompt"
      end
    end
    if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
      url "https://github.com/jlesquembre/kubeprompt/releases/download/0.4.0/kubeprompt_Linux_arm64.tar.gz"
      sha256 "e491260c50465bc2bf3c98d5275999fb087cefdbab72aaf78781261427acf7ba"

      def install
        bin.install "kubeprompt"
      end
    end
  end

  test do
    system "#{bin}/kubeprompt -v"
  end
end
