Skip to content

Commit

Permalink
kubetail 0.0.2 (new formula)
Browse files Browse the repository at this point in the history
Kubetail is a tool for viewing logs from multiple Kubernetes
pods simultaneously. This commit adds a new formula for the
Kubetail CLI executable (`kubetail`).

The formula has the following features:

- Builds frontend (Typescript/React) from source using pnpm and
  the backend from source using Go
- Adds shell completions from the executable
- Uses executable's built-in `serve --test` subcommand for testing
  • Loading branch information
amorey committed Oct 20, 2024
1 parent 5eb3a40 commit e4b189f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Formula/k/kubetail.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class Kubetail < Formula
desc "Logging tool for Kubernetes with a real-time web dashboard"
homepage "https://www.kubetail.com/"
url "https://github.com/kubetail-org/kubetail/archive/refs/tags/cli/v0.0.2.tar.gz"
sha256 "7fc8e1be49d12a52bbca8254290c6f068b5652068065f9171a2b88820ca0ebac"
license "Apache-2.0"

depends_on "go" => :build
depends_on "make" => :build
depends_on "node" => :build
depends_on "pnpm" => :build

def install
system "make", "build"
bin.install "bin/kubetail"
generate_completions_from_executable(bin/"kubetail", "completion")
end

test do
command_output = shell_output("#{bin}/kubetail serve --test")
assert_match "ok", command_output
end
end

0 comments on commit e4b189f

Please sign in to comment.