class Gitroots < Formula desc "gitroots CLI: code governance and agent sessions" homepage "https://gitroots.com" version "0.6.8" license :cannot_represent on_macos do on_arm do url "https://gitroots.com/cli/0.6.8/gitroots-0.6.8-darwin-arm64.tar.gz" sha256 "f5e01f62551187d92f43fcf478b1b0736f85e404111d281af911b0e4a085c8ff" end on_intel do url "https://gitroots.com/cli/0.6.8/gitroots-0.6.8-darwin-x64.tar.gz" sha256 "45dbb83a5d366067d2165ecc42bea3506bad7f2eefefd47a2e2bf22526e336f6" end end on_linux do on_arm do url "https://gitroots.com/cli/0.6.8/gitroots-0.6.8-linux-arm64.tar.gz" sha256 "0ffdcf23a8f1d732de8b99d9bc6a6e1dd4d1aae165f0f33a2a847a1959d9f8bf" end on_intel do url "https://gitroots.com/cli/0.6.8/gitroots-0.6.8-linux-x64.tar.gz" sha256 "792b8b93b4839f8ca8a854c0a1ff931d777f791c6521756f407577179254ee67" end end def install bin.install "gitroots" generate_completions_from_executable(bin/"gitroots", "completion") end test do assert_match version.to_s, shell_output("#{bin}/gitroots --version") end end