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