use crate::cli::OwnersSubCommands;
use crate::error::CommandExitCode;
use crate::meta::CargoConfig;
use crate::services::ShowService;
pub fn show_cmd(config: &CargoConfig, opts: &OwnersSubCommands) -> CommandExitCode {
let (all, explain) = match opts {
OwnersSubCommands::Show { all, explain } => (*all, *explain),
_ => (false, false),
};
let service = ShowService::new(config.clone(), explain);
service.execute(all)
}