Versions in this module Expand all Collapse all v0 v0.2.0 Sep 8, 2022 Changes in this version type Command + Example string v0.1.0 Feb 3, 2022 Changes in this version + type Builder interface + EndSection func() + Heading func(section uint, title, description string, ts time.Time) + Indent func(n int) + IndentEnd func() + List func(text string) + Paragraph func() + Section func(text string) + String func() string + TaggedParagraph func(indentation int) + Text func(text string) + TextBold func(text string) + TextItalic func(text string) + type Command struct + Commands map[string]*Command + Flags map[string]Flag + Name string + Short string + Usage string + func NewCommand(name string, short string, usage string) *Command + func (m *Command) AddCommand(c *Command) error + func (m *Command) AddFlag(f Flag) error + type Flag struct + Name string + PFlag bool + Short string + Usage string + type ManPage struct + Root Command + func NewManPage(section uint, title string, description string) *ManPage + func (m *ManPage) WithLongDescription(desc string) *ManPage + func (m *ManPage) WithSection(section string, text string) *ManPage + func (m ManPage) Build(w Builder) string + type Section struct + Name string + Text string