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
@@ -13,7 +13,7 @@ func createEvaluateSequenceCommand() *cobra.Command {
Use: "eval [expression] [yaml_file1]...",
Aliases: []string{"e"},
Short: "(default) Apply the expression to each document in each yaml file in sequence",
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) {
ValidArgsFunction: func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) { //nolint:revive
if len(args) == 0 {
return nil, cobra.ShellCompDirectiveNoFileComp
}