Skip to content

Commit

Permalink
k8sgpt: add completion support
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 4, 2024
1 parent 10553fb commit 2cc628c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Formula/k/k8sgpt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@ class K8sgpt < Formula
depends_on "go" => :build

def install
ldflags = %W[
-s -w
-X main.version=#{version}
-X main.commit=#{tap.user}
-X main.date=#{time.iso8601}
]
ldflags = "-s -w -X main.version=#{version} -X main.commit=#{tap.user} -X main.date=#{time.iso8601}"
system "go", "build", *std_go_args(ldflags:)

generate_completions_from_executable(bin/"k8sgpt", "completion")
end

test do
Expand Down

0 comments on commit 2cc628c

Please sign in to comment.