homebrew-core/Formula/docui.rb

34 lines
1.6 KiB
Ruby

class Docui < Formula
desc "TUI Client for Docker"
homepage "https://github.com/skanehira/docui"
url "https://github.com/skanehira/docui/archive/2.0.4.tar.gz"
sha256 "9af1a720aa7c68bea4469f1d7eea81ccb68e15a47ccfc9c83011a06d696ad30d"
license "MIT"
head "https://github.com/skanehira/docui.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "b051dececee7d5ec01e3b2a2c235dfc919bdca2a856c1235aacb0ff99fc4a06c"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "30638ca04ad60f4c2406405d151dad2c5854a6b7404dcb1d5be3917a93efcd14"
sha256 cellar: :any_skip_relocation, monterey: "01b2add3c6c9fe6d6c732dd06ef244a891396db8701fef01b963f0c3c4595e65"
sha256 cellar: :any_skip_relocation, big_sur: "17950b11df021726ebb04675ffc92c096e94ab213c32b803888ab3c16e360f60"
sha256 cellar: :any_skip_relocation, catalina: "85812a1ae880fa35f8f03fb7632d6e1cae1288c673c02d5ef41763a998e1ce42"
sha256 cellar: :any_skip_relocation, mojave: "da3b5097f43474a93b7fd5d9cdd27c351b4c86214041369a7e3c41690574fe45"
sha256 cellar: :any_skip_relocation, x86_64_linux: "7b07a4c7b3432386b5708ec2a9fbc319fd30d1abd12ec03d802a2e2a49bfaf7b"
end
deprecate! date: "2022-03-16", because: :repo_archived
depends_on "go@1.17" => :build
def install
system "go", "build", *std_go_args(ldflags: "-s -w")
end
test do
system "#{bin}/docui", "-h"
assert_match "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?",
shell_output("#{bin}/docui 2>&1", 1)
end
end