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

use crate::cli::OwnersSubCommands;
use crate::error::CommandExitCode;
use crate::meta::CargoConfig;
use crate::services::ShowService;

/// Show current owners configuration
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)
}