MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / run

Function run

src/main.rs:201–210  ·  view source on GitHub ↗
(cli: Cli)

Source from the content-addressed store, hash-verified

199}
200
201async fn run(cli: Cli) -> tracedecay::errors::Result<()> {
202 let command = match cli.command {
203 Some(cmd) => cmd,
204 None => return commands::handle_no_command().await,
205 };
206
207 maybe_run_extract_worker(&command);
208 run_startup_preamble(&command).await;
209 dispatch_command(command).await
210}
211
212fn maybe_run_extract_worker(command: &Commands) {
213 // Worker mode bypasses every normal startup path (no config load, no

Callers 2

async_mainFunction · 0.70
dispatch_commandFunction · 0.70

Calls 4

handle_no_commandFunction · 0.85
maybe_run_extract_workerFunction · 0.85
run_startup_preambleFunction · 0.85
dispatch_commandFunction · 0.85

Tested by

no test coverage detected