Skip to main content

run

Function run 

Source
pub fn run(cli: Cli) -> Result<(), Diagnostic>
Expand description

Top-level entry point used by main.rs and by integration tests.

Routes CLI commands to the appropriate action function. The match is exhaustive — adding a new variant forces an explicit dispatch update.

For vre leaf commands and auth commands, the renderer is constructed from the --format / -j / -l flags parsed into FormatArgs and resolved via FormatArgs::resolve().into_renderer(). The auth commands additionally build a Config from --server/DSP_SERVER and, for login, an HttpDspClient.