summaryrefslogtreecommitdiff
path: root/vendor/github.com/spf13/cobra/zsh_completions.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-10 10:41:38 -0500
committerGitHub <noreply@github.com>2021-02-10 10:41:38 -0500
commit88ab83d4e04f2054713461c3f28d905b4c1c2ee2 (patch)
tree9a16fd35768ad78a6c28d85ad0191b3f9d6f03e4 /vendor/github.com/spf13/cobra/zsh_completions.go
parent832639ca6d1d8004c46aaa4e6c021dfd5a314af3 (diff)
parent46b014bad5f1d471a2ebfd819dfdf33a184ea109 (diff)
downloadpodman-88ab83d4e04f2054713461c3f28d905b4c1c2ee2.tar.gz
podman-88ab83d4e04f2054713461c3f28d905b4c1c2ee2.tar.bz2
podman-88ab83d4e04f2054713461c3f28d905b4c1c2ee2.zip
Merge pull request #9298 from containers/dependabot/go_modules/github.com/spf13/cobra-1.1.2
Bump github.com/spf13/cobra from 1.1.1 to 1.1.2
Diffstat (limited to 'vendor/github.com/spf13/cobra/zsh_completions.go')
-rw-r--r--vendor/github.com/spf13/cobra/zsh_completions.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/spf13/cobra/zsh_completions.go b/vendor/github.com/spf13/cobra/zsh_completions.go
index 92a70394a..2e840285f 100644
--- a/vendor/github.com/spf13/cobra/zsh_completions.go
+++ b/vendor/github.com/spf13/cobra/zsh_completions.go
@@ -70,12 +70,12 @@ func (c *Command) genZshCompletion(w io.Writer, includeDesc bool) error {
return err
}
-func genZshComp(buf *bytes.Buffer, name string, includeDesc bool) {
+func genZshComp(buf io.StringWriter, name string, includeDesc bool) {
compCmd := ShellCompRequestCmd
if !includeDesc {
compCmd = ShellCompNoDescRequestCmd
}
- buf.WriteString(fmt.Sprintf(`#compdef _%[1]s %[1]s
+ WriteStringAndCheck(buf, fmt.Sprintf(`#compdef _%[1]s %[1]s
# zsh completion for %-36[1]s -*- shell-script -*-