exclude lint errors to keep cobra params unchanged

This commit is contained in:
Marco Vito Moscaritolo
2024-11-16 11:48:53 +11:00
committed by Mike Farah
parent 072491c656
commit 7eef1a454e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ yq -P -oy sample.json
return evaluateSequence(cmd, args)
},
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
PersistentPreRunE: func(cmd *cobra.Command, args []string) error { //nolint:revive
cmd.SetOut(cmd.OutOrStdout())
level := logging.WARNING
stringFormat := `[%{level}] %{color}%{time:15:04:05}%{color:reset} %{message}`