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)
}
}
return formatNames, cobra.ShellCompDirectiveDefault
return formatNames, cobra.ShellCompDirectiveNoFileComp
})
if err != nil {

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

Loading…
Cancel
Save