diff --git a/Formula/l/llama.rb b/Formula/l/llama.rb deleted file mode 100644 index 59827da22666..000000000000 --- a/Formula/l/llama.rb +++ /dev/null @@ -1,38 +0,0 @@ -class Llama < Formula - desc "Terminal file manager" - homepage "https://github.com/antonmedv/llama" - url "https://github.com/antonmedv/llama/archive/refs/tags/v1.4.0.tar.gz" - sha256 "301f5dff2b8f27595a08a12626125d28313b5a92e97ccdaf4d0cb89111ebab9a" - license "MIT" - - bottle do - sha256 cellar: :any_skip_relocation, arm64_ventura: "4adfa169cb58477fa07b0f806952d966efa0fb9b22495ab9568a64ad71972f74" - sha256 cellar: :any_skip_relocation, arm64_monterey: "4adfa169cb58477fa07b0f806952d966efa0fb9b22495ab9568a64ad71972f74" - sha256 cellar: :any_skip_relocation, arm64_big_sur: "4adfa169cb58477fa07b0f806952d966efa0fb9b22495ab9568a64ad71972f74" - sha256 cellar: :any_skip_relocation, ventura: "7d8baa2669497254cbaf91e4b242bf936ef0f22db3e75cda93bd3e4b2ed957fc" - sha256 cellar: :any_skip_relocation, monterey: "7d8baa2669497254cbaf91e4b242bf936ef0f22db3e75cda93bd3e4b2ed957fc" - sha256 cellar: :any_skip_relocation, big_sur: "7d8baa2669497254cbaf91e4b242bf936ef0f22db3e75cda93bd3e4b2ed957fc" - sha256 cellar: :any_skip_relocation, x86_64_linux: "8e9487dcbb9f24e79fd6a0b9655716feba82a9996c470756615d3a6ef29bec1d" - end - - depends_on "go" => :build - - def install - system "go", "build", *std_go_args(ldflags: "-s -w") - end - - test do - require "pty" - - PTY.spawn(bin/"llama") do |r, w, _pid| - r.winsize = [80, 60] - sleep 1 - w.write "\e" - begin - r.read - rescue Errno::EIO - # GNU/Linux raises EIO when read is done on closed pty - end - end - end -end diff --git a/Formula/w/walk.rb b/Formula/w/walk.rb new file mode 100644 index 000000000000..6513084b4598 --- /dev/null +++ b/Formula/w/walk.rb @@ -0,0 +1,38 @@ +class Walk < Formula + desc "Terminal navigator" + homepage "https://github.com/antonmedv/walk" + url "https://github.com/antonmedv/walk/archive/refs/tags/v1.4.0.tar.gz" + sha256 "606568e098a91c7b0e694534bf0d268d92cc9ac19bce9e4671775837176eb9f5" + license "MIT" + + bottle do + sha256 cellar: :any_skip_relocation, arm64_ventura: "504e4846c09e6db3de651514150a0b2940d93d69f013a8c50b95844e2ee67c33" + sha256 cellar: :any_skip_relocation, arm64_monterey: "504e4846c09e6db3de651514150a0b2940d93d69f013a8c50b95844e2ee67c33" + sha256 cellar: :any_skip_relocation, arm64_big_sur: "504e4846c09e6db3de651514150a0b2940d93d69f013a8c50b95844e2ee67c33" + sha256 cellar: :any_skip_relocation, ventura: "e46b2b053dd1a65b7bbcb96b9735c17a4e916e19e9db1b3bd49c87a5225f2a1c" + sha256 cellar: :any_skip_relocation, monterey: "e46b2b053dd1a65b7bbcb96b9735c17a4e916e19e9db1b3bd49c87a5225f2a1c" + sha256 cellar: :any_skip_relocation, big_sur: "e46b2b053dd1a65b7bbcb96b9735c17a4e916e19e9db1b3bd49c87a5225f2a1c" + sha256 cellar: :any_skip_relocation, x86_64_linux: "8a428549fbba7dbe9cd59fa25cc9ceae79554c6a3b776b7e09e7348428118924" + end + + depends_on "go" => :build + + def install + system "go", "build", *std_go_args(ldflags: "-s -w") + end + + test do + require "pty" + + PTY.spawn(bin/"walk") do |r, w, _pid| + r.winsize = [80, 60] + sleep 1 + w.write "\e" + begin + r.read + rescue Errno::EIO + # GNU/Linux raises EIO when read is done on closed pty + end + end + end +end diff --git a/formula_renames.json b/formula_renames.json index 3e70d4f14301..f6b72555a642 100644 --- a/formula_renames.json +++ b/formula_renames.json @@ -108,6 +108,7 @@ "libsasl2": "cyrus-sasl", "libtorch": "pytorch", "linux-headers": "linux-headers@4.4", + "llama": "walk", "lua51": "lua@5.1", "mat": "mat2", "maven32": "maven@3.2",