Documentation
¶
Overview ¶
Package reference renders the Spec pages of funcd and funcdctl from the config struct and the command trees (ADR-0324).
Index ¶
Constants ¶
const DevAnnotation = "build"
DevAnnotation marks, in a command's Annotations, a command that only the -tags dev build registers.
const Marker = "# Generated by just generate from the config struct and the command trees: change the code, not this page."
Marker is the first line of each page's front matter.
Variables ¶
This section is empty.
Functions ¶
func CommandTables ¶
CommandTables renders each command as a heading, its usage line and text, and a table of its flags.
func ConfigTable ¶
ConfigTable renders keys as one Markdown table, laid out as the kinds' Spec pages are (ADR-0323).
func Page ¶
Page renders a Spec page: front matter that starts with Marker, then the sections in order.
Types ¶
type Command ¶
Command is one visible command and its flags.
func Commands ¶
Commands lists every visible command under root, depth first, root first, with cobra's help and completion commands added as --help lists them. It fails, naming the command and the flag, on a text or a flag usage that names an ADR, and on a default that holds the value of a set FUNCD_* variable or has a part, split at "/", equal to the host's runtime.GOOS or runtime.GOARCH (ADR-0324 Decision 3).
type ConfigKey ¶
type ConfigKey struct {
Path, Type, Default, Limits, Env, Description string
}
ConfigKey is one leaf key of funcdconfig.yaml.
func ConfigKeys ¶
ConfigKeys lists every leaf key of config.Config in declaration order, its default taken from defaults.