class Gshell < Formula
desc "Rust shell for people who live in the terminal"
homepage "https://github.com/emagjby/gshell"
license "MIT"
version "__VERSION__"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/emagjby/gshell/releases/download/v__VERSION__/gshell-__VERSION__-aarch64-apple-darwin.tar.gz"
sha256 "__SHA256_AARCH64_APPLE_DARWIN__"
else
url "https://github.com/emagjby/gshell/releases/download/v__VERSION__/gshell-__VERSION__-x86_64-apple-darwin.tar.gz"
sha256 "__SHA256_X86_64_APPLE_DARWIN__"
end
end
on_linux do
url "https://github.com/emagjby/gshell/releases/download/v__VERSION__/gshell-__VERSION__-x86_64-unknown-linux-gnu.tar.gz"
sha256 "__SHA256_X86_64_UNKNOWN_LINUX_GNU__"
end
def install
bin.install "gshell"
doc.install "README.md", "docs/install.md", "docs/configuration.md"
end
test do
assert_match version.to_s, shell_output("#{bin}/gshell --version")
end
end