Skip to content

Commit eaab980

Browse files
superatomicBrewTestBot
authored andcommitted
tere 1.1.0 (new formula)
* tere 1.1.0 (new formula) * tere: remove caveats Closes Homebrew#106357. Signed-off-by: Sean Molenaar <[email protected]> Signed-off-by: BrewTestBot <[email protected]>
1 parent 317ab45 commit eaab980

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Formula/tere.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
class Tere < Formula
2+
desc "Terminal file explorer"
3+
homepage "https://github.com/mgunyho/tere"
4+
url "https://github.com/mgunyho/tere/archive/refs/tags/v1.1.0.tar.gz"
5+
sha256 "a4ebd2f0b5728d6ec61749564106d67d74720fa05cb906686d559a5f15549698"
6+
license "EUPL-1.2"
7+
head "https://github.com/mgunyho/tere.git", branch: "master"
8+
9+
depends_on "rust" => :build
10+
11+
def install
12+
system "cargo", "install", *std_cargo_args
13+
end
14+
15+
test do
16+
# Launch `tere` and then immediately exit to test whether `tere` runs without errors.
17+
PTY.spawn(bin/"tere") do |r, w, _pid|
18+
r.winsize = [80, 43]
19+
sleep 1
20+
w.write "\e"
21+
begin
22+
r.read
23+
rescue Errno::EIO
24+
# GNU/Linux raises EIO when read is done on closed pty
25+
end
26+
end
27+
end
28+
end

0 commit comments

Comments
 (0)