summaryrefslogtreecommitdiff
path: root/vendor/github.com/spf13/cobra/fish_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/fish_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/fish_completions.go')
-rw-r--r--vendor/github.com/spf13/cobra/fish_completions.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/spf13/cobra/fish_completions.go b/vendor/github.com/spf13/cobra/fish_completions.go
index eaae9bca8..3e112347d 100644
--- a/vendor/github.com/spf13/cobra/fish_completions.go
+++ b/vendor/github.com/spf13/cobra/fish_completions.go
@@ -8,7 +8,7 @@ import (
"strings"
)
-func genFishComp(buf *bytes.Buffer, name string, includeDesc bool) {
+func genFishComp(buf io.StringWriter, name string, includeDesc bool) {
// Variables should not contain a '-' or ':' character
nameForVar := name
nameForVar = strings.Replace(nameForVar, "-", "_", -1)
@@ -18,8 +18,8 @@ func genFishComp(buf *bytes.Buffer, name string, includeDesc bool) {
if !includeDesc {
compCmd = ShellCompNoDescRequestCmd
}
- buf.WriteString(fmt.Sprintf("# fish completion for %-36s -*- shell-script -*-\n", name))
- buf.WriteString(fmt.Sprintf(`
+ WriteStringAndCheck(buf, fmt.Sprintf("# fish completion for %-36s -*- shell-script -*-\n", name))
+ WriteStringAndCheck(buf, fmt.Sprintf(`
function __%[1]s_debug
set file "$BASH_COMP_DEBUG_FILE"
if test -n "$file"