Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ManPageGenerator ¶
type ManPageGenerator struct {
// OutputDir is the directory where man pages will be written
OutputDir string
// Section is the man page section (1-9)
Section int
// Date is the date to include in the man page
Date string
Footer string
// Header is the header to include in the man page
Header string
}
ManPageGenerator generates man pages for commands
func NewManPageGenerator ¶
func NewManPageGenerator(outputDir string) *ManPageGenerator
NewManPageGenerator creates a new man page generator
func (*ManPageGenerator) GenerateManPage ¶
func (g *ManPageGenerator) GenerateManPage(cmd *cobra.Command, cmdName string) error
GenerateManPage generates a man page for a command
func (*ManPageGenerator) GenerateManPages ¶
func (g *ManPageGenerator) GenerateManPages(rootCmd *cobra.Command) error
GenerateManPages generates man pages for all commands
Click to show internal directories.
Click to hide internal directories.