Skip to main content
Glama
8b-is
by 8b-is
st_unified_showcase.rsβ€’2.88 kB
#!/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(()) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/8b-is/smart-tree'

If you have feedback or need assistance with the MCP directory API, please join our Discord server