Skip to main content

Module plan_tui

Module plan_tui 

Source
Expand description

What a command is about to write, before it writes it: a table of the inputs or outputs (rows, columns, what is shared), notes, and the command’s settings, each on a key. A flag flips on its key; a number asks for a new value. Every change redraws the plan; Enter writes with the settings shown, q writes nothing. A plan that cannot be written says why, and Enter waits for a setting that can.

Structs§

Control
One setting on a key.
Plan
What a command would write with some settings.
PlanView
The view, independent of the terminal so it can be tested.

Enums§

Setting
A setting’s value.

Functions§

plan_in
Show view on the screen of tui; the settings it was written with, or None when cancelled.

Type Aliases§

Planner
Computes the plan for the settings, in control order.