Skip to content

Commit

Permalink
chore: update go, libs, add version info
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerinthenight committed Jun 13, 2024
1 parent 8b7242e commit 3fd5f92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
builds:
- id: "kubepfm"
binary: kubepfm
Expand All @@ -20,13 +21,13 @@ release:
owner: flowerinthenight
name: kubepfm
brews:
- tap:
- repository:
owner: flowerinthenight
name: homebrew-tap
name: kubepfm
homepage: "https://github.com/flowerinthenight/kubepfm"
description: "A simple port-forward wrapper tool for multiple pods/deployments/services."
folder: Formula
directory: Formula
install: |
bin.install "kubepfm"
test: |
Expand Down
11 changes: 8 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,21 @@ import (
)

var (
version = "dev"
commit = "none"
date = "unknown"

green = color.New(color.FgGreen).SprintFunc()
red = color.New(color.FgRed).SprintFunc()

targets []string
cs map[string]*exec.Cmd

rootCmd = &cobra.Command{
Use: "kubepfm",
Short: "A simple port-forward wrapper tool for multiple pods/deployments/services",
Long: "A simple port-forward wrapper tool for multiple pods/deployments/services.",
Use: "kubepfm",
Short: "A simple port-forward wrapper tool for multiple pods/deployments/services",
Long: `A simple port-forward wrapper tool for multiple pods/deployments/services.
[version=` + version + `, commit=` + commit + `, date=` + date + `]`,
RunE: Run,
SilenceUsage: true,
}
Expand Down

0 comments on commit 3fd5f92

Please sign in to comment.