Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove command descriptions in case the whole application is failing #4290

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions cmd/csi/init/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ func (builder CommandBuilder) SetNamespace(namespace string) CommandBuilder {

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

return cmd
Expand Down
5 changes: 3 additions & 2 deletions cmd/csi/provisioner/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ func (builder CommandBuilder) getFilesystem() afero.Fs {

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
5 changes: 3 additions & 2 deletions cmd/csi/server/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ func (builder CommandBuilder) getFilesystem() afero.Fs {

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
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
Loading