tui-builder¶
Renders a config as an interactive terminal UI.
tui-builder <config.yaml>
It takes one argument, the config file, and no flags.
What happens at startup¶
- The config is loaded and validated. Any schema error (an unknown field value, a missing required field, a bad reference) stops here with a message naming the field.
app.envis checked: a missing required variable stops the load, defaults are applied, and undeclared-but-referenced variables print a warning.- If
app.promptsis set, its form is shown. Each answer is set as an environment variable; cancelling exits. ${env.*}is substituted across the config.- The first screen (
tui.screen, ortui.initialfromtui.screens) is built and its sources start fetching.
Environment¶
- Any variable the config reads as
${env.NAME}. A boot prompt whose variable is already set starts pre-filled, soGH_USER=octocat tui-builder repos.yamllets you skip straight through the form.
Keys and mouse¶
The shell's keys are listed in Guide → App;
? shows every key the focused component accepts.
The mouse focuses panes and moves cursors, the wheel scrolls, a double
click is enter, and a right click opens the action menu on the row
under the pointer. Hold shift (or alt in iTerm2) while dragging to
select text for copying.
Exit status¶
0 on a normal quit (q); 1 with the error on stderr if the config
fails to load or the program fails to start.
Related¶
wranglruns the same config's data layer without a UI.example-launcher(ortask examplesin a clone) lists every example and runs the one you pick.-dir PATHpoints it at another directory of*.yamlconfigs; the default is./examples, or../examples.