Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { Heading(section uint, title, description string, ts time.Time) Paragraph() Indent(n int) IndentEnd() TaggedParagraph(indentation int) List(text string) Section(text string) EndSection() Text(text string) TextBold(text string) TextItalic(text string) String() string }
Builder is the interface of a man page builder.
type Command ¶
type Command struct { Name string Short string Usage string Example string Flags map[string]Flag Commands map[string]*Command }
Command represents a command.
func NewCommand ¶
NewCommand returns a new Command.
func (*Command) AddCommand ¶
AddCommand adds a sub-command.
type ManPage ¶
type ManPage struct { Root Command // contains filtered or unexported fields }
ManPage represents a man page generator.
func NewManPage ¶
NewManPage returns a new ManPage generator instance.
func (*ManPage) WithLongDescription ¶
WithLongDescription sets the long description.
Click to show internal directories.
Click to hide internal directories.