cargo-governor 1.2.0

Machine-First, LLM-Ready, CI/CD-Native release automation tool for Rust crates
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Check owners command - thin controller

use crate::cli::OwnersSubCommands;
use crate::error::{CommandExitCode, Result};
use crate::meta::CargoConfig;
use crate::services::CheckService;

/// Check owners configuration against crates.io
pub async fn check_cmd(config: &CargoConfig, opts: &OwnersSubCommands) -> Result<CommandExitCode> {
    let all = match opts {
        OwnersSubCommands::Check { all } => *all,
        _ => false,
    };

    let service = CheckService::new(config.clone());
    service.execute(all).await
}