(
value: &str,
)
| 384 | } |
| 385 | |
| 386 | pub(crate) fn parse_lcm_scope_arg( |
| 387 | value: &str, |
| 388 | ) -> tracedecay::errors::Result<tracedecay::sessions::lcm::LcmScope> { |
| 389 | use tracedecay::sessions::lcm::LcmScope; |
| 390 | match value.trim().replace('-', "_").as_str() { |
| 391 | "all" => Ok(LcmScope::All), |
| 392 | "session" => Ok(LcmScope::Session), |
| 393 | "current" => Ok(LcmScope::Current), |
| 394 | other => Err(tracedecay::errors::TraceDecayError::Config { |
| 395 | message: format!( |
| 396 | "invalid session-reflection --scope '{other}'; expected all, session, or current" |
| 397 | ), |
| 398 | }), |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | async fn dispatch_command(command: Commands) -> tracedecay::errors::Result<()> { |
| 403 | match command { |
no test coverage detected