arcature-cli 2026.1.1

Developer lifecycle CLI for Arcature applications.
Documentation
//! `arc db status` — show migration status by delegating to the migrator.
//!
//! Unlike the migration commands, `status` is read-only and does not need
//! the advisory lock — it only reads the `seaql_migrations` tracking table
//! and reports pending/applied state.

use crate::error::CommandError;
use crate::process::{ProcessSpec, run};
use crate::project::discover;

pub(crate) fn run_status() -> Result<(), CommandError> {
    let project = discover()?;

    let spec = ProcessSpec::new("cargo", project.root().to_path_buf())
        .arg("run")
        .arg("-p")
        .arg("migration")
        .arg("--")
        .arg("status");

    run(&spec)?;
    Ok(())
}