use anyhow::Result;
use colored::Colorize;
pub fn show_help() -> Result<()> {
println!("{}", "π’ Cargo Mate (cm) - A Rustic Journey".bold());
println!();
println!("{}", "USAGE:".yellow());
println!(" cm Auto-build or run default build");
println!(" cm <command> Run cm command or pass to cargo");
println!();
println!("{}", "SPECIAL COMMANDS:".yellow());
println!(" cm wtf π€ Ask CargoMate AI a question");
println!(" cm idea π‘ Submit an idea for Cargo Mate");
println!(" cm journey π¬ Record and play command sequences");
println!(" cm anchor β Save and restore project states");
println!(" cm log π Captain's log for build notes");
println!(" cm tide π Performance tracking charts");
println!(" cm map πΊοΈ Dependency visualization");
println!(" cm mutiny π΄ββ οΈ Override cargo restrictions");
println!(" cm config βοΈ Configuration management");
println!(" cm version π’ Version management and auto-incrementing");
println!(" cm view π View build results and artifacts");
println!(" cm optimize π Build performance optimization");
println!(" cm checklist π Show error/warning checklist");
println!(" cm scrub π§Ή System-wide cargo clean");
println!(" cm sweep π§Ή Remove debug print statements");
println!(" cm history π Show build history");
println!(" cm install π§ Install shell integration");
println!(" cm user π€ Show user information and license status");
println!(
" cm affiliate π° Manage affiliate program & earning opportunities"
);
println!();
println!("{}", "EXAMPLES:".yellow());
println!(" cm journey record build-flow # Record a build sequence");
println!(" cm anchor save before-refactor # Save current state");
println!(" cm mutiny allow-warnings # Temporarily allow warnings");
println!(" cm map show # Show dependency tree");
println!(" cm wtf er 10 # Send recent errors to CargoMate AI");
println!(
" cm wtf checklist 5 # Send 5 recent checklist items to CargoMate AI"
);
println!(" cm scrub run --dry-run # Preview system-wide cargo clean");
println!(" cm wtf ollama enable llama2 # Configure local Ollama integration");
println!();
println!("Run 'cm <command> --help' for more information on a command.");
Ok(())
}