forked from nonsensical-dev/zenyx-engine
Add descriptions to commands and improve REPL display formatting
This commit is contained in:
parent
e168f4e93f
commit
93a88e7857
7 changed files with 323 additions and 292 deletions
|
@ -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?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue