Documentation
¶
Overview ¶
Package reference writes the CLI reference pages of the docs site from the cobra command tree. Each command has one page: a group page that lists its subcommands, or a leaf page with its usage, examples and flags.
Index ¶
Constants ¶
const ( // Result tells what the command reports: when it returns changed: true // or false, and when it fails. Result = "osapi.docs.result" // Permission is the permission that the command needs, for example // node:write. Permission = "osapi.docs.permission" // Notes is more detail for the docs site. Use it rarely. Notes = "osapi.docs.notes" )
The keys of the annotations of a command that its page shows. --help does not show them, so a page has detail that a terminal does not need.
Variables ¶
var Keep = []string{"output.md"}
Keep names the pages in the directory that a person writes. Write does not delete them.
Functions ¶
func Page ¶
Page returns the markdown of the page of c. subs are its documented subcommands: a command that has some gets a group page.
Types ¶
This section is empty.