cargo-mate 1.8.0

Rust development companion that enhances cargo with intelligent workflows, state management, performance optimization, and comprehensive project monitoring.
Documentation
use anyhow::Result;
use colored::*;
use crate::cmd::init::is_build_process;
pub fn handle_register(
    license_key: Option<String>,
    status: bool,
    remaining: bool,
) -> Result<()> {
    let license_manager = crate::captain::license::LicenseManager::new();
    match license_manager?.enforce_license("register") {
        Ok(_) => {
            println!(
                "📝 Registration: license_key={:?}, status={}, remaining={}",
                license_key, status, remaining
            );
            Ok(())
        }
        Err(e) => Err(e),
    }
}