File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments