MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / exec_subcommand

Function exec_subcommand

crates/standalone/src/lib.rs:619–625  ·  view source on GitHub ↗
(cmd: &str, args: &ArgMatches, db_cores: JobCores)

Source from the content-addressed store, hash-verified

617}
618
619pub 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
627pub fn get_subcommands() -> Vec<Command> {
628 vec![start::cli(), extract_schema::cli()]

Callers 1

async_mainFunction · 0.70

Calls 2

execFunction · 0.50
ErrFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…