(cmd: &str, args: &ArgMatches, db_cores: JobCores)
| 617 | } |
| 618 | |
| 619 | pub async fn exec_subcommand(cmd: &str, args: &ArgMatches, db_cores: JobCores) -> Result<(), anyhow::Error> { |
| 620 | match cmd { |
| 621 | "start" => start::exec(args, db_cores).await, |
| 622 | "extract-schema" => extract_schema::exec(args).await, |
| 623 | unknown => Err(anyhow::anyhow!("Invalid subcommand: {unknown}")), |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | pub fn get_subcommands() -> Vec<Command> { |
| 628 | vec![start::cli(), extract_schema::cli()] |
no test coverage detected
searching dependent graphs…