(cli: Cli)
| 199 | } |
| 200 | |
| 201 | async 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 | |
| 212 | fn maybe_run_extract_worker(command: &Commands) { |
| 213 | // Worker mode bypasses every normal startup path (no config load, no |
no test coverage detected