Documentation ¶
Index ¶
Constants ¶
View Source
const ( ListFormat = "{{.Path}}" MarkdownTemplate = `#### <a name="{{.Link}}">{{.Path}}</a>` + "\n\n" + "**Description**:\n\n{{.Description}}\n\n" + "**Example**:\n\n{{.Example}}\n\n" + "**Flags**:\n\n" + "| Short | Name | Usage | Default value |\n" + "| ----- | ---- | ----- | ------------- |\n" + "{{range .Flags}}" + "| {{if .Short}}-{{.Short}}{{end}} " + "| --{{.Name}} " + "| {{.Usage}} " + "| {{if ne .DefValue \"[]\"}}{{.DefValue}}{{end}} " + "|\n" + "{{end}}\n\n" + "**Subcommands**:\n\n" + "{{range .Subcommands}}" + "* **[{{.Name}}](#{{.Link}})** {{.ShortDescription}}\n" + "{{end}}\n\n" TextTamplate = "Command: {{.Path}}\n" + "Description:\n{{.Description}}\n" + "Example:\n{{.Example}}\n" + "Flags:\n" + "{{range .Flags}}" + "{{if .Short}}-{{.Short}}{{else}} {{end}} " + "--{{.Name}} " + "{{.Usage}} " + "{{if ne .DefValue \"[]\"}}{{.DefValue}}{{end}} " + "\n" + "{{end}}\n" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubCommand ¶
Click to show internal directories.
Click to hide internal directories.