Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

§Command Dispatch

Routes a parsed Commands value to its handler. The scope binary and the TUI both call dispatch, so a command gives the same result in both places. Process concerns (the version line, error display, the exit code) stay with the caller.

Structs§

ConfigSource
Where the config comes from: the binary reads it this way at start, and the TUI reads it the same way again after setup (#99).

Functions§

create_http_client
Builds the transport that config and the environment select (see scope::http::shared) and prints its notices. Each call builds a new one.
dispatch
Routes one command to its handler.
dispatch_with
Routes one command to its handler, using the given client factory.