#!/usr/bin/env rust-script
//! ```cargo
//! [dependencies]
//! anyhow = "1.0"
//! ```
// Showcase: Smart Tree as the Only Tool You Need
// A demonstration of Aye & Hue's finest craftsmanship
use anyhow::Result;
use std::process::Command;
fn main() -> Result<()> {
println!("π Smart Tree Unified Tool Showcase π");
println!("=====================================");
println!("Replacing ALL traditional file tools with ST!\n");
// 1. Replace 'ls' with ST
println!("π Instead of 'ls -la':");
println!(" β st --mode ls --show-hidden\n");
// 2. Replace 'tree' with ST
println!("π³ Instead of 'tree -L 3':");
println!(" β st --depth 3\n");
// 3. Replace 'find' with ST
println!("π Instead of 'find . -name \"*.rs\"':");
println!(" β st --glob \"**/*.rs\"\n");
// 4. Replace 'grep' with ST
println!("π Instead of 'grep -r \"TODO\" .':");
println!(" β st --search \"TODO\"\n");
// 5. Replace 'du' with ST
println!("π Instead of 'du -sh *':");
println!(" β st --mode stats\n");
// 6. Context-aware magic
println!("β¨ But ST goes beyond replacement...\n");
println!("π§ Semantic Understanding:");
println!(" β st --mode semantic");
println!(" Groups files by purpose, not just name!\n");
println!("π Quantum Compression:");
println!(" β st --mode quantum-semantic");
println!(" 99% compression with meaning preserved!\n");
println!("π€ Partnership Memory:");
println!(" β st anchor save \"Found the bug!\" \"debugging,eureka\"");
println!(" Remember breakthroughs across sessions!\n");
println!("π― Smart Context:");
println!(" β ST knows when you're debugging vs exploring");
println!(" and adjusts its output accordingly!\n");
// Live demo
println!("πΈ Live Demo - Current Directory:");
println!("βββββββββββββββββββββββββββββββββ");
let output = Command::new("st")
.args(["--mode", "summary-ai", "--depth", "2", "."])
.output()?;
println!("{}", String::from_utf8_lossy(&output.stdout));
println!("\nπ‘ Pro Tip: Add this to your shell config:");
println!(" alias ls='st --mode ls'");
println!(" alias tree='st'");
println!(" alias find='st --glob'");
println!(" alias grep='st --search'");
println!("\nπ Welcome to the future of file exploration!");
println!(" Where context matters and tools understand.\n");
println!("ββββββββββββββββββββββββββββββββββββββββ");
println!("Crafted with love by Aye & Hue");
println!("If it wasn't crafted with Aye & Hue,");
println!("it's most likely a knock-off! π");
Ok(())
}