Skip to content

Commit

Permalink
Remove command descriptions in case the whole application is failing (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrenn authored Jan 21, 2025
1 parent 18d8260 commit 0b7cdbd
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
5 changes: 3 additions & 2 deletions cmd/csi/init/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ var nodeId, endpoint string

func New() *cobra.Command {
cmd := &cobra.Command{
Use: use,
RunE: run(),
Use: use,
RunE: run(),
SilenceUsage: true,
}

return cmd
Expand Down
5 changes: 3 additions & 2 deletions cmd/csi/provisioner/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ var probeAddress string

func New() *cobra.Command {
cmd := &cobra.Command{
Use: use,
RunE: run(),
Use: use,
RunE: run(),
SilenceUsage: true,
}

addFlags(cmd)
Expand Down
5 changes: 3 additions & 2 deletions cmd/csi/server/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ var nodeId, endpoint string

func New() *cobra.Command {
cmd := &cobra.Command{
Use: use,
RunE: run(),
Use: use,
RunE: run(),
SilenceUsage: true,
}

addFlags(cmd)
Expand Down
5 changes: 3 additions & 2 deletions cmd/operator/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ func (builder *CommandBuilder) getSignalHandler() context.Context {

func (builder CommandBuilder) Build() *cobra.Command {
return &cobra.Command{
Use: use,
RunE: builder.buildRun(),
Use: use,
RunE: builder.buildRun(),
SilenceUsage: true,
}
}

Expand Down
5 changes: 3 additions & 2 deletions cmd/standalone/standalone.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ const (

func NewStandaloneCommand() *cobra.Command {
return &cobra.Command{
Use: use,
RunE: startStandAloneInit,
Use: use,
RunE: startStandAloneInit,
SilenceUsage: true,
}
}

Expand Down
5 changes: 3 additions & 2 deletions cmd/webhook/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ func (builder CommandBuilder) SetPodName(podName string) CommandBuilder {

func (builder CommandBuilder) Build() *cobra.Command {
cmd := &cobra.Command{
Use: use,
RunE: builder.buildRun(),
Use: use,
RunE: builder.buildRun(),
SilenceUsage: true,
}

addFlags(cmd)
Expand Down

0 comments on commit 0b7cdbd

Please sign in to comment.