homebrew-core/Formula/bandwhich.rb

26 lines
859 B
Ruby
Raw Normal View History

class Bandwhich < Formula
desc "Terminal bandwidth utilization tool"
homepage "https://github.com/imsnif/bandwhich"
url "https://github.com/imsnif/bandwhich/archive/0.16.0.tar.gz"
sha256 "fcb3ccc68e4ee86657940e879f23d122b7d8857472587e6864007c02a3cc9aa4"
2020-07-02 15:47:20 +00:00
license "MIT"
2020-01-05 18:57:00 +00:00
bottle do
cellar :any_skip_relocation
2020-07-13 19:07:11 +00:00
sha256 "b5d748211d1b21b8d7f15514d817f6693b3d196146a4a969d103e41be4e1546a" => :catalina
sha256 "672e16c6fb86958d26ade135782d30d60e378b6caf48026e3ad6888996bf5f8e" => :mojave
sha256 "bd2cec70b421902c3c2d5b5697fff2f8da6991e068d1d05cc87b108ae8e43eab" => :high_sierra
2020-01-05 18:57:00 +00:00
end
depends_on "rust" => :build
def install
2020-06-25 14:37:19 +00:00
system "cargo", "install", *std_cargo_args
end
test do
output = shell_output "#{bin}/bandwhich --interface bandwhich", 2
assert_match output, "Error: Cannot find interface bandwhich"
end
end