kubernetes/vendor/github.com/spf13/cobra/doc/man_docs.go

// GenManTree will generate a man page for this command and all descendants
// in the directory given. The header may be nil. This function may not work
// correctly if your command names have `-` in them. If you have `cmd` with two
// subcmds, `sub` and `sub-third`, and `sub` has a subcommand called `third`
// it is undefined which help output will be in the file `cmd-sub-third.1`.
func GenManTree(cmd *cobra.Command, header *GenManHeader, dir string) error {}

// GenManTreeFromOpts generates a man page for the command and all descendants.
// The pages are written to the opts.Path directory.
func GenManTreeFromOpts(cmd *cobra.Command, opts GenManTreeOptions) error {}

type GenManTreeOptions

type GenManHeader

// GenMan will generate a man page for the given command and write it to
// w. The header argument may be nil, however obviously w may not.
func GenMan(cmd *cobra.Command, header *GenManHeader, w io.Writer) error {}

func fillHeader(header *GenManHeader, name string, disableAutoGen bool) error {}

func manPreamble(buf io.StringWriter, header *GenManHeader, cmd *cobra.Command, dashedName string) {}

func manPrintFlags(buf io.StringWriter, flags *pflag.FlagSet) {}

func manPrintOptions(buf io.StringWriter, command *cobra.Command) {}

func genMan(cmd *cobra.Command, header *GenManHeader) []byte {}