Skip to content

Commit

Permalink
fix globaloptions
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Nov 4, 2023
1 parent 7ac3ba5 commit 279a0ba
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions cli/cmd/proxy/stats/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ func (c *StatsCommand) init() {
}

f := c.set.NewSet("Command Options")
f.StringVar(&flag.StringVar{
Name: "namespace",
Target: &c.flagNamespace,
Usage: "The namespace where the target Pod can be found.",
Aliases: []string{"n"},
})

f = c.set.NewSet("Global Options")
f.StringVar(&flag.StringVar{
Name: "kubeconfig",
Aliases: []string{"c"},
Expand All @@ -59,12 +67,6 @@ func (c *StatsCommand) init() {
Default: "",
Usage: "Kubernetes context to use.",
})
f.StringVar(&flag.StringVar{
Name: "namespace",
Target: &c.flagNamespace,
Usage: "The namespace where the target Pod can be found.",
Aliases: []string{"n"},
})

c.help = c.set.Help()
}
Expand Down Expand Up @@ -96,12 +98,6 @@ func (c *StatsCommand) Run(args []string) int {
return 1
}

// Setup logger to stream Helm library logs.
var uiLogger = func(s string, args ...interface{}) {
logMsg := fmt.Sprintf(s, args...)
c.UI.Output(logMsg, terminal.WithLibraryStyle())
}

// helmCLI.New() will create a settings object which is used by the Helm Go SDK calls.
settings := helmCLI.New()
if c.flagKubeConfig != "" {
Expand Down

0 comments on commit 279a0ba

Please sign in to comment.