mirror of
https://github.com/spf13/cobra
synced 2025-05-05 12:57:22 +00:00
PR comments
This commit is contained in:
parent
0c8b1ebfb4
commit
17ef38bdd8
4 changed files with 0 additions and 4 deletions
|
@ -201,7 +201,6 @@ func manPrintOptions(buf io.StringWriter, command *cobra.Command) {
|
||||||
func genMan(cmd *cobra.Command, header *GenManHeader) []byte {
|
func genMan(cmd *cobra.Command, header *GenManHeader) []byte {
|
||||||
cmd.InitDefaultHelpCmd()
|
cmd.InitDefaultHelpCmd()
|
||||||
cmd.InitDefaultHelpFlag()
|
cmd.InitDefaultHelpFlag()
|
||||||
cmd.InitDefaultCompletionCmd()
|
|
||||||
|
|
||||||
// something like `rootcmd-subcmd1-subcmd2`
|
// something like `rootcmd-subcmd1-subcmd2`
|
||||||
dashCommandName := strings.Replace(cmd.CommandPath(), " ", "-", -1)
|
dashCommandName := strings.Replace(cmd.CommandPath(), " ", "-", -1)
|
||||||
|
|
|
@ -54,7 +54,6 @@ func GenMarkdown(cmd *cobra.Command, w io.Writer) error {
|
||||||
func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) string) error {
|
func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) string) error {
|
||||||
cmd.InitDefaultHelpCmd()
|
cmd.InitDefaultHelpCmd()
|
||||||
cmd.InitDefaultHelpFlag()
|
cmd.InitDefaultHelpFlag()
|
||||||
cmd.InitDefaultCompletionCmd()
|
|
||||||
|
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
name := cmd.CommandPath()
|
name := cmd.CommandPath()
|
||||||
|
|
|
@ -61,7 +61,6 @@ func GenReST(cmd *cobra.Command, w io.Writer) error {
|
||||||
func GenReSTCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string, string) string) error {
|
func GenReSTCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string, string) string) error {
|
||||||
cmd.InitDefaultHelpCmd()
|
cmd.InitDefaultHelpCmd()
|
||||||
cmd.InitDefaultHelpFlag()
|
cmd.InitDefaultHelpFlag()
|
||||||
cmd.InitDefaultCompletionCmd()
|
|
||||||
|
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
name := cmd.CommandPath()
|
name := cmd.CommandPath()
|
||||||
|
|
|
@ -92,7 +92,6 @@ func GenYaml(cmd *cobra.Command, w io.Writer) error {
|
||||||
func GenYamlCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) string) error {
|
func GenYamlCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) string) error {
|
||||||
cmd.InitDefaultHelpCmd()
|
cmd.InitDefaultHelpCmd()
|
||||||
cmd.InitDefaultHelpFlag()
|
cmd.InitDefaultHelpFlag()
|
||||||
cmd.InitDefaultCompletionCmd()
|
|
||||||
|
|
||||||
yamlDoc := cmdDoc{}
|
yamlDoc := cmdDoc{}
|
||||||
yamlDoc.Name = cmd.CommandPath()
|
yamlDoc.Name = cmd.CommandPath()
|
||||||
|
|
Loading…
Add table
Reference in a new issue