Skip to content

Commit 0421c81

Browse files
p-linnanechenrui333
authored andcommitted
television 0.5.3 (new formula)
Signed-off-by: Patrick Linnane <[email protected]> television: update test Signed-off-by: Rui Chen <[email protected]>
1 parent 9acc728 commit 0421c81

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2875,6 +2875,7 @@ tektoncd-cli
28752875
teku
28762876
telegraf
28772877
teleport
2878+
television
28782879
teller
28792880
telnet
28802881
telnetd

Formula/t/television.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
class Television < Formula
2+
desc "General purpose fuzzy finder TUI"
3+
homepage "https://github.com/alexpasmantier/television"
4+
url "https://github.com/alexpasmantier/television/archive/refs/tags/0.5.3.tar.gz"
5+
sha256 "2010564e2afcf6874f410faab6c235fe99943c35a944acbfe7fb9d9a3680d406"
6+
license "MIT"
7+
head "https://github.com/alexpasmantier/television.git", branch: "main"
8+
9+
depends_on "rust" => :build
10+
11+
def install
12+
system "cargo", "install", *std_cargo_args
13+
end
14+
15+
test do
16+
assert_match version.to_s, shell_output("#{bin}/tv -V")
17+
18+
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]
19+
20+
begin
21+
output_log = testpath/"output.log"
22+
pid = spawn bin/"tv", [:out, :err] => output_log.to_s
23+
sleep 2
24+
assert_match "Channel", output_log.read
25+
ensure
26+
Process.kill("TERM", pid)
27+
Process.wait(pid)
28+
end
29+
end
30+
end

0 commit comments

Comments
 (0)