fix(comp): Disable file comp for output formats

It does not make sense to suggest files to the user as output formats.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
pull/8727/head
Marc Khouzam 5 years ago
parent 5b42157335
commit a1e26e8f45

@ -69,7 +69,7 @@ func bindOutputFlag(cmd *cobra.Command, varRef *output.Format) {
formatNames = append(formatNames, format) formatNames = append(formatNames, format)
} }
} }
return formatNames, cobra.ShellCompDirectiveDefault return formatNames, cobra.ShellCompDirectiveNoFileComp
}) })
if err != nil { if err != nil {

@ -1,5 +1,5 @@
table table
json json
yaml yaml
:0 :4
Completion ended with directive: ShellCompDirectiveDefault Completion ended with directive: ShellCompDirectiveNoFileComp

Loading…
Cancel
Save