Skip to content

Commit

Permalink
Merge pull request #205373 from Homebrew/chiko
Browse files Browse the repository at this point in the history
chiko 0.0.5 (new formula)
  • Loading branch information
BrewTestBot authored Jan 25, 2025
2 parents 4e809fd + e403102 commit ed848c4
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ chezmoi
chezscheme
chibi-scheme
chicken
chiko
chisel-tunnel
chkbit
chkrootkit
Expand Down
35 changes: 35 additions & 0 deletions Formula/c/chiko.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
class Chiko < Formula
desc "Ultimate Beauty gRPC Client for your Terminal"
homepage "https://github.com/felangga/chiko"
url "https://github.com/felangga/chiko/archive/refs/tags/v0.0.5.tar.gz"
sha256 "de0df67604c243be104236d562899a3e18c041297b8d4a658c042c0ccc901332"
license "MIT"
head "https://github.com/felangga/chiko.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "56efedda7eb1b8077245451134fbebb015e36915bf5b821df13e3f17d91e39d7"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "56efedda7eb1b8077245451134fbebb015e36915bf5b821df13e3f17d91e39d7"
sha256 cellar: :any_skip_relocation, arm64_ventura: "56efedda7eb1b8077245451134fbebb015e36915bf5b821df13e3f17d91e39d7"
sha256 cellar: :any_skip_relocation, sonoma: "d0fec974cc0e42f8c102c07b9afbba41b02fca453f67638ea08ab38136f955c1"
sha256 cellar: :any_skip_relocation, ventura: "d0fec974cc0e42f8c102c07b9afbba41b02fca453f67638ea08ab38136f955c1"
sha256 cellar: :any_skip_relocation, x86_64_linux: "5a090ba84fa12454b6d5e516b076b04237676cf4ff7a72f2c8925e7ecbe55665"
end

depends_on "go" => :build

def install
system "go", "build", *std_go_args(ldflags: "-s -w")
end

test do
ENV["TERM"] = "xterm"
require "pty"

PTY.spawn(bin/"chiko") do |r, w, _pid|
w.write "q"
assert_match "The Ultimate Beauty GRPC Client", r.read
rescue Errno::EIO
# GNU/Linux raises EIO when read is done on closed pty
end
end
end

0 comments on commit ed848c4

Please sign in to comment.