use std::process::Command;
fn main() {
println!("Testing new jbuild CLI commands...");
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!");
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);
}
}