fix(comp): Fix broken completion for --output flag

For commands using the new post-render flag, the completion for the
--output flag was broken.

For example:
   helm install -o <TAB>
   __helm_handle_reply:47: command not found: __helm_output_options

The bash __helm_output_options function is no longer used but was
referred to by mistake.

This commit removes the offending code.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
(cherry picked from commit 023bdaec63)
release-3.1
Marc Khouzam 6 years ago committed by Matt Farina
parent 0977ded29a
commit 374e9d8c7d
No known key found for this signature in database
GPG Key ID: 9436E80BFBA46909

@ -99,8 +99,6 @@ func (o *outputValue) Set(s string) error {
func bindPostRenderFlag(cmd *cobra.Command, varRef *postrender.PostRenderer) {
cmd.Flags().Var(&postRenderer{varRef}, postRenderFlag, "the path to an executable to be used for post rendering. If it exists in $PATH, the binary will be used, otherwise it will try to look for the executable at the given path")
// Setup shell completion for the flag
cmd.MarkFlagCustom(outputFlag, "__helm_output_options")
}
type postRenderer struct {

Loading…
Cancel
Save