cargo-mate 1.7.5

Rust development companion that enhances cargo with intelligent workflows, state management, performance optimization, and comprehensive project monitoring.
Documentation
1
2
3
4
5
6
7
8
9
use anyhow::Result;
pub fn handle_license_command(command: &str) -> Result<()> {
    let license_manager = crate::captain::license::LicenseManager::new();
    match license_manager.enforce_license(command) {
        Ok(true) => Ok(()),
        Ok(false) => Err(anyhow::anyhow!("License check failed")),
        Err(e) => Err(e),
    }
}