Documentation ¶
Overview ¶
Package man contains libraries for rendering package documentation as man pages.
Index ¶
Constants ¶
View Source
const ManFilename = "README.md"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { // Path is the path to a local package Path string // ManExecCommand is the exec command to run for displaying the man pages. ManExecCommand string // StdOut is the StdOut value StdOut io.Writer }
Command displays local package documentation as man pages. The location of the man page is read from the Kptfile packageMetadata. If no man page is specified, and error is returned.
Man page format should be the format supported by the github.com/cpuguy83/go-md2man/md2man library
func (Command) GetExecCmd ¶
GetExecCmd returns the command that will be executed to display the man pages.
Click to show internal directories.
Click to hide internal directories.