Skip to content
Merged
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
11 changes: 6 additions & 5 deletions pkg/commands/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ func newCustomCommand(logger logutils.Log) *customCommand {
c := &customCommand{log: logger}

customCmd := &cobra.Command{
Use: "custom",
Short: "Build a version of golangci-lint with custom linters",
Args: cobra.NoArgs,
PreRunE: c.preRunE,
RunE: c.runE,
Use: "custom",
Short: "Build a version of golangci-lint with custom linters",
Args: cobra.NoArgs,
PreRunE: c.preRunE,
RunE: c.runE,
SilenceUsage: true,
}

c.cmd = customCmd
Expand Down
1 change: 1 addition & 0 deletions pkg/commands/linters.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ func newLintersCommand(logger logutils.Log) *lintersCommand {
ValidArgsFunction: cobra.NoFileCompletions,
RunE: c.execute,
PreRunE: c.preRunE,
SilenceUsage: true,
}

fs := lintersCmd.Flags()
Expand Down
1 change: 1 addition & 0 deletions pkg/commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func newRunCommand(logger logutils.Log, info BuildInfo) *runCommand {
PostRun: c.postRun,
PersistentPreRunE: c.persistentPreRunE,
PersistentPostRunE: c.persistentPostRunE,
SilenceUsage: true,
}

runCmd.SetOut(logutils.StdOut) // use custom output to properly color it in Windows terminals
Expand Down