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
//! Sync owners command - thin controller

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

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

    let service = SyncService::new(config.clone())?;
    service.execute(all, dry_run).await
}