Skip to main content

run_with_config

Function run_with_config 

Source
pub async fn run_with_config(config_service: &dyn ConfigService) -> RunOutcome
Expand description

Run the CLI with a provided configuration service.

Returns a structured RunOutcome so the caller (typically main.rs) can render the final JSON envelope without re-parsing argv. The output mode and --quiet flag are installed into the process-wide UI state via output::install_active_mode before dispatch, so all UI helpers and progress-bar construction sites observe the resolved mode.

ยงArguments

  • config_service - The configuration service to use