Documentation
¶
Index ¶
Constants ¶
View Source
const ( OnlyUsageString = "{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}" ADocHelpTable = `{{if .HasAvailableLocalFlags}}{{ $tick := "` + "`" + `" }} [cols="2,4,2,1"] |=== |Option|Purpose|Format|Default {{range localFlagsSlice .LocalFlags}}{{ if not .Hidden }} |{{$tick}}--{{.Name}}{{$tick}} {{if .Shorthand}}({{$tick}}-{{.Shorthand}}{{$tick}}){{end}} |{{.Usage}} |{{type .}} |{{if .DefValue}}{{$tick}}{{.DefValue | trimTrailingWhitespaces}}{{$tick}}{{end}}{{end}} {{end}} |=== {{end}}` )
Variables ¶
This section is empty.
Functions ¶
func EnhanceHelper ¶
EnhanceHelper wraps helper function with alternative formatting and templates (e.g. asciidoc) based on --helper-format flag Applies to all subcommands. This can be useful when automatically generating documentation for CLI.
func RegisterTemplateFuncs ¶
func RegisterTemplateFuncs()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.