feat: Upgrade to cobra v1.8.1
Signed-off-by: John McBride <jpmmcbride@gmail.com>
This commit is contained in:
2
vendor/github.com/spf13/cobra/doc/man_docs.go
generated
vendored
2
vendor/github.com/spf13/cobra/doc/man_docs.go
generated
vendored
@@ -133,7 +133,7 @@ func fillHeader(header *GenManHeader, name string, disableAutoGen bool) error {
|
||||
}
|
||||
header.Date = &now
|
||||
}
|
||||
header.date = (*header.Date).Format("Jan 2006")
|
||||
header.date = header.Date.Format("Jan 2006")
|
||||
if header.Source == "" && !disableAutoGen {
|
||||
header.Source = "Auto generated by spf13/cobra"
|
||||
}
|
||||
|
||||
2
vendor/github.com/spf13/cobra/doc/md_docs.go
generated
vendored
2
vendor/github.com/spf13/cobra/doc/md_docs.go
generated
vendored
@@ -128,7 +128,7 @@ func GenMarkdownTree(cmd *cobra.Command, dir string) error {
|
||||
return GenMarkdownTreeCustom(cmd, dir, emptyStr, identity)
|
||||
}
|
||||
|
||||
// GenMarkdownTreeCustom is the the same as GenMarkdownTree, but
|
||||
// GenMarkdownTreeCustom is the same as GenMarkdownTree, but
|
||||
// with custom filePrepender and linkHandler.
|
||||
func GenMarkdownTreeCustom(cmd *cobra.Command, dir string, filePrepender, linkHandler func(string) string) error {
|
||||
for _, c := range cmd.Commands() {
|
||||
|
||||
2
vendor/github.com/spf13/cobra/doc/rest_docs.go
generated
vendored
2
vendor/github.com/spf13/cobra/doc/rest_docs.go
generated
vendored
@@ -140,7 +140,7 @@ func GenReSTTree(cmd *cobra.Command, dir string) error {
|
||||
return GenReSTTreeCustom(cmd, dir, emptyStr, defaultLinkHandler)
|
||||
}
|
||||
|
||||
// GenReSTTreeCustom is the the same as GenReSTTree, but
|
||||
// GenReSTTreeCustom is the same as GenReSTTree, but
|
||||
// with custom filePrepender and linkHandler.
|
||||
func GenReSTTreeCustom(cmd *cobra.Command, dir string, filePrepender func(string) string, linkHandler func(string, string) string) error {
|
||||
for _, c := range cmd.Commands() {
|
||||
|
||||
2
vendor/github.com/spf13/cobra/doc/util.go
generated
vendored
2
vendor/github.com/spf13/cobra/doc/util.go
generated
vendored
@@ -40,7 +40,7 @@ func hasSeeAlso(cmd *cobra.Command) bool {
|
||||
// that do not contain \n.
|
||||
func forceMultiLine(s string) string {
|
||||
if len(s) > 60 && !strings.Contains(s, "\n") {
|
||||
s = s + "\n"
|
||||
s += "\n"
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user