Skip to main content

Module templates

Module templates 

Source
Expand description

Compiled-in authoring templates for the files operators write by hand.

Users install Sloop as a bare binary, so nothing in this repository โ€” including docs/ โ€” is reachable from an installed sloop. These templates are the grammar documentation that ships with the binary: sloop template <kind> prints one to stdout, and the intended use is redirection (sloop template ticket > .agents/sloop/tickets/mine.md). Writing into .agents/sloop/ directly is deliberately not offered: the ticket directory is a live queue, so an example file dropped there is an example file at risk of being posted.

Every template is a working example annotated with comments, and the tests below round-trip each one through the same parser the daemon uses. A grammar change that these templates do not follow fails the build rather than shipping documentation that lies.

Enumsยง

TemplateKind
The file kinds sloop template can print. clap renders the variants as the accepted values, so an unknown kind fails with the valid list.