Skip to content

Commit 241559e

Browse files
authored
Merge pull request #198998 from Homebrew/television-add-formula
television 0.5.3 (new formula)
2 parents e40f362 + 4083990 commit 241559e

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2882,6 +2882,7 @@ tektoncd-cli
28822882
teku
28832883
telegraf
28842884
teleport
2885+
television
28852886
teller
28862887
telnet
28872888
telnetd

Formula/t/television.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
bottle do
10+
sha256 cellar: :any_skip_relocation, arm64_sequoia: "d1ad2bc6f2683f9e9b23f392ca662db2a78eb970736615de18dd984096beba76"
11+
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a0cb553564fc701584986460011f3652642ba6a66566ffa4555bfb7f42194d41"
12+
sha256 cellar: :any_skip_relocation, arm64_ventura: "3996fc393dd33005407d8548732ca4f1d13548e1e68917a32f840dd34cf85831"
13+
sha256 cellar: :any_skip_relocation, sonoma: "f8f34f7635c566b8096ca8b4cc14fccddd3ec59fb77db2cdd3a46573a60a5bcf"
14+
sha256 cellar: :any_skip_relocation, ventura: "a59a0837fd1ce2714b8e5161d71ebf7e94e452b5cfc67d071da7d41d9d092c28"
15+
sha256 cellar: :any_skip_relocation, x86_64_linux: "7239aaa77835ca43a1a523cd96b3c2acd449bdc76367b07b55b2e1dd0abc792c"
16+
end
17+
18+
depends_on "rust" => :build
19+
20+
def install
21+
system "cargo", "install", *std_cargo_args
22+
end
23+
24+
test do
25+
assert_match version.to_s, shell_output("#{bin}/tv -V")
26+
27+
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]
28+
29+
begin
30+
output_log = testpath/"output.log"
31+
pid = spawn bin/"tv", [:out, :err] => output_log.to_s
32+
sleep 2
33+
assert_match "Channel", output_log.read
34+
ensure
35+
Process.kill("TERM", pid)
36+
Process.wait(pid)
37+
end
38+
end
39+
end

0 commit comments

Comments
 (0)