pub async fn handle_command(
command: &Commands,
config: &Config,
cwd: &Path,
cli_model: Option<&str>,
) -> Result<bool>Expand description
Handle CLI subcommands Returns Ok(true) if the command was handled and we should exit Returns Ok(false) if we should continue to the main application
§Errors
Whatever the dispatched subcommand fails with — there is no shared failure
mode across them, since this arm-matches every verb from init to the
daemon and plugin trees. A subcommand that ran and reported bad news (no
models installed, no daemon running) is Ok(true): the Err path is for a
verb that could not do its job, and it becomes the process exit code.