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/8683/head
Marc Khouzam 5 years ago committed by Marc Khouzam
parent f9077ecd65
commit 459dcd7f72

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