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 package main
import ( import (
"bytes"
"io" "io"
"github.com/pkg/errors" "github.com/pkg/errors"
@ -211,9 +210,7 @@ __helm_convert_bash_to_zsh() {
` `
out.Write([]byte(zshInitialization)) out.Write([]byte(zshInitialization))
buf := new(bytes.Buffer) runCompletionBash(out, cmd)
cmd.Root().GenBashCompletion(buf)
out.Write(buf.Bytes())
zshTail := ` zshTail := `
BASH_COMPLETION_EOF BASH_COMPLETION_EOF

Loading…
Cancel
Save