add file browser component and widget

This commit is contained in:
Timur Gordon
2025-08-05 15:02:23 +02:00
parent 4e43c21b72
commit ba43a82db0
95 changed files with 17840 additions and 423 deletions

42
cmd/main.rs Normal file
View File

@@ -0,0 +1,42 @@
//! Framework Binary
//!
//! Main entry point for the framework application.
use components::prelude::*;
use std::env;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Initialize logging
env_logger::init();
let args: Vec<String> = env::args().collect();
if args.len() < 2 {
println!("Framework v{}", VERSION);
println!("Usage: framework <command>");
println!();
println!("Commands:");
println!(" serve Start the web server");
println!(" version Show version information");
return Ok(());
}
match args[1].as_str() {
"serve" => {
println!("Starting framework server...");
// TODO: Implement server functionality using components
println!("Server functionality not yet implemented");
}
"version" => {
println!("Framework v{}", VERSION);
}
_ => {
eprintln!("Unknown command: {}", args[1]);
eprintln!("Run 'framework' for usage information");
std::process::exit(1);
}
}
Ok(())
}