Documentation
¶
Overview ¶
Package keypath is the one grammar for config key paths, shared by the config tier that binds keys in a file (extract) and the pick that reads a key out of a remote def's target (pick). Two parsers of the same thing disagreed: the tier read `wfsys:up:` as the key `wfsys:up`, the pick split it at the first colon, so `pick=yaml:tasks.wfsys:up` found nothing while `ds def Taskfile.yml#tasks.wfsys:up` worked (bug 135).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func End ¶
End returns where a key ends in the trimmed line t: the first `=`, or the first `:` that ends it, or -1. In YAML that is a colon followed by whitespace or the end of the line, because a colon anywhere else is part of the key -- `wfsys:up:` declares the key `wfsys:up`, which is how every Taskfile names a namespaced task. Other formats keep the first colon, since a Java properties file writes `key:value` with no space.
func Quote ¶
Quote spells one path segment so the path round-trips: a key that contains the path separator, or a quote, is written quoted.
Types ¶
This section is empty.