package clidocstool
import "github.com/docker/cli-docs-tool"
Index ¶
- type Client
- func New(opts Options) (*Client, error)
- func (c *Client) GenAllTree() error
- func (c *Client) GenMarkdownTree(cmd *cobra.Command) error
- func (c *Client) GenYamlTree(cmd *cobra.Command) error
- type Options
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an active cli-docs-tool object
func New ¶
New initializes a new cli-docs-tool client
func (*Client) GenAllTree ¶
GenAllTree creates all structured ref files for this command and all descendants in the directory given.
func (*Client) GenMarkdownTree ¶
GenMarkdownTree will generate a markdown page for this command and all descendants in the directory given.
func (*Client) GenYamlTree ¶
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`.
type Options ¶
Options defines options for cli-docs-tool
Source Files ¶
clidocstool.go clidocstool_md.go clidocstool_yaml.go markdown.go
Directories ¶
Path | Synopsis |
---|---|
annotation |
- Version
- v0.3.1
- Published
- Jan 19, 2022
- Platform
- darwin/amd64
- Imports
- 17 packages
- Last checked
- now –
Tools for package owners.