Skip to main content

Module exec

Module exec 

Source
Expand description

§TUI Command Execution

Turns one line of TUI input into a Plan. Session commands (chain, format, ctx, tokens, …) run here and change the SessionContext. Every other line is parsed by the CLI’s own clap definition (Cli), so commands, aliases and flags are the same as on the command line.

The session context fills in flags the user did not type, for example --chain when a chain is pinned. A flag the user types always wins.

Structs§

Invocation
A CLI command that the TUI will run.

Enums§

Plan
What the TUI must do with one line of input.
Route
Where a parsed command runs.

Functions§

plan
Plans one line of input.
route
Decides where a command runs.