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/8227/head
Marc Khouzam 5 years ago committed by Vlad Fratila
parent d7524abedf
commit 59f0fa77ed

@ -75,7 +75,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