jbuild 0.1.9

High-performance Java build tool supporting Maven and Gradle
Documentation
//! Test the new interactive CLI commands

use std::process::Command;

fn main() {
    println!("Testing new jbuild CLI commands...");
    
    // Test help output
    let output = Command::new("cargo")
        .args(&["run", "--bin", "jbuild", "--", "--help"])
        .output()
        .expect("Failed to execute command");
    
    if output.status.success() {
        let help_text = String::from_utf8_lossy(&output.stdout);
        println!("✅ Help command works!");
        
        // Check if new commands are in help
        let has_interactive = help_text.contains("interactive");
        let has_profile = help_text.contains("profile");
        let has_monitor = help_text.contains("monitor");
        
        println!("✅ interactive command: {}", has_interactive);
        println!("✅ profile command: {}", has_profile);
        println!("✅ monitor command: {}", has_monitor);
        
        if has_interactive && has_profile && has_monitor {
            println!("🎉 All new commands are available!");
        } else {
            println!("❌ Some commands are missing");
        }
    } else {
        eprintln!("❌ Help command failed: {}", String::from_utf8_lossy(&output.stderr));
        std::process::exit(1);
    }
}