use crate::cli::OwnersSubCommands;
use crate::error::{CommandExitCode, Result};
use crate::meta::CargoConfig;
use crate::services::SyncService;
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
}