mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 00:54:51 +08:00
exclude lint errors to keep cobra params unchanged
This commit is contained in:
committed by
Mike Farah
parent
072491c656
commit
7eef1a454e
+1
-1
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user