feat(comp): have zsh completion generation re-use bash code

This allows that any addition to the bash completion logic be
automatically added to the zsh logic.

Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
pull/6502/head
Marc Khouzam 5 years ago
parent 261e5b00ac
commit 681eab83f9

@ -16,7 +16,6 @@ limitations under the License.
package main
import (
"bytes"
"io"
"github.com/pkg/errors"
@ -211,9 +210,7 @@ __helm_convert_bash_to_zsh() {
`
out.Write([]byte(zshInitialization))
buf := new(bytes.Buffer)
cmd.Root().GenBashCompletion(buf)
out.Write(buf.Bytes())
runCompletionBash(out, cmd)
zshTail := `
BASH_COMPLETION_EOF

Loading…
Cancel
Save