Skip to main content

Module form

Module form 

Source
Expand description

A small multi-field editor, for the things that need more than one value.

Every other input in tmprl is one value, and the one-line prompt covers those. Creating a schedule needs six, which as a positional line would be unreadable to type and silent to mistype: a task queue and a cron string are both strings, so a swapped pair only surfaces as a server error much later.

Editing lives here rather than in the renderer so that field movement, validation and the rendered command are all testable without a terminal.

Structsยง

Field
One labelled line of a Form.
Form