homebrew-core/Formula/diskonaut.rb

33 lines
1.7 KiB
Ruby

class Diskonaut < Formula
desc "Terminal visual disk space navigator"
homepage "https://github.com/imsnif/diskonaut"
url "https://github.com/imsnif/diskonaut/archive/0.11.0.tar.gz"
sha256 "355367dbc6119743d88bfffaa57ad4f308596165a57acc2694da1277c3025928"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "9205493cd0b62de4cef98806d38630ca2ef81cf33cc9981f3c3947494d02fc6d"
sha256 cellar: :any_skip_relocation, arm64_monterey: "274b273acc115561a92e1d25b2090f1acab3f8081eac548771a4f693d877698e"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "6d4fc3eb1244ec14a1719e29e97a5a884a6a48c5918ed0df626db002312be23a"
sha256 cellar: :any_skip_relocation, monterey: "47ec2678d78687e62e493656eac0603dce2aaa2610e6727db4ae791732cb64ea"
sha256 cellar: :any_skip_relocation, big_sur: "f7cf4cb3d65059185ab893d3f76d09adf0bab139f0410e2d072f0a3b9811c167"
sha256 cellar: :any_skip_relocation, catalina: "8386cdc8f2798b2d7dfe52982433a62d9a05ce04fc64e13c909324b9c1b623c7"
sha256 cellar: :any_skip_relocation, mojave: "75b42c75f32c0a70a681345ad60ed93f9ad4c54751a949c4efc15d859f60c6d1"
sha256 cellar: :any_skip_relocation, high_sierra: "f1d1c2cf37df515ef13ddf5cfd6cc96c73a734911d682f24d1b45f60af93b20a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "0adcbe8702fdbcc19e743a274d6037dc7513a8e8b812b2b9497724f496aa124f"
end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args
end
test do
output = pipe_output("#{bin}/diskonaut", shell_output("ls"), 2)
assert_match "Error: IO-error occurred", output
assert_match "diskonaut #{version}", shell_output("#{bin}/diskonaut --version")
end
end