bandwhich 0.7.0 (new formula)
Closes #48504. Signed-off-by: Rui Chen <chenrui333@gmail.com>
This commit is contained in:
parent
f484391558
commit
26dba1ebfa
1 changed files with 17 additions and 0 deletions
17
Formula/bandwhich.rb
Normal file
17
Formula/bandwhich.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
class Bandwhich < Formula
|
||||
desc "Terminal bandwidth utilization tool"
|
||||
homepage "https://github.com/imsnif/bandwhich"
|
||||
url "https://github.com/imsnif/bandwhich/archive/0.7.0.tar.gz"
|
||||
sha256 "6f08b0e1bf07fc8397bf9d4c5e8211368dbbcad4c0cfc2c369066f711a343152"
|
||||
|
||||
depends_on "rust" => :build
|
||||
|
||||
def install
|
||||
system "cargo", "install", "--locked", "--root", prefix, "--path", "."
|
||||
end
|
||||
|
||||
test do
|
||||
output = shell_output "#{bin}/bandwhich --interface bandwhich", 2
|
||||
assert_match output, "Error: Cannot find interface bandwhich"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue