Documentation
¶
Overview ¶
Package clidocstool provides tools for generating CLI documentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.2.0
type Client struct {
// contains filtered or unexported fields
}
Client represents an active cli-docs-tool object
func (*Client) GenAllTree ¶ added in v0.2.0
GenAllTree creates all structured ref files for this command and all descendants in the directory given.
func (*Client) GenManTree ¶ added in v0.8.0
GenManTree generates a man page for the command and all descendants. If SOURCE_DATE_EPOCH is set, in order to allow reproducible package builds, we explicitly set the build time to SOURCE_DATE_EPOCH.
func (*Client) GenMarkdownTree ¶ added in v0.2.0
GenMarkdownTree will generate a markdown page for this command and all descendants in the directory given.
func (*Client) GenYamlTree ¶ added in v0.2.0
GenYamlTree creates yaml structured ref files for this command and all descendants in the directory given. This function may not work correctly if your command names have `-` in them. If you have `cmd` with two subcmds, `sub` and `sub-third`, and `sub` has a subcommand called `third` it is undefined which help output will be in the file `cmd-sub-third.1`.