Add descriptions to commands and improve REPL display formatting

This commit is contained in:
Jason Spalti 2024-12-01 23:52:12 -06:00 committed by BitSyndicate
parent 42aa44d156
commit b4090dc4ad
Signed by: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
7 changed files with 323 additions and 292 deletions

View file

@ -1,18 +1,44 @@
use anyhow::Result;
use colored::Colorize;
use log2::info;
pub mod core;
pub fn print_splash() {
println!(
r#"
&&&&&&&&&&&
&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&&&&
&& &&&&&&&&&
&& &&&&&&&&&
&&&&&&&&&&&& &&&&&&&&&&&
&&&&&&&&&&&&& &&&&&&&&&&&&
&&&&&&&&&&&&& &&&&&&&&&&&&&
&&&&&&&&&&&& &&&&&&&&&&&&&
&&&&&&&&&&& &&&&&&&&&&&&
&&&&&&&&& &&
&&&&&&&&& &&
&&&&&&&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&
&&&&&&&&&&&
Version: {}
"#,
env!("CARGO_PKG_VERSION").yellow().italic().underline()
);
}
#[tokio::main]
async fn main() -> Result<()> {
let _log2 = log2::open("z.log").tee(true).level("debug").start();
info!("Initalizing Engine");
let shell_thread = tokio::task::spawn(async {
info!("Shell thread started");
core::repl::handle_repl().await;
core::repl::repl::handle_repl().await;
});
core::splash::print_splash();
print_splash();
info!("Engine Initalized");
core::init_renderer()?;
shell_thread.await?;