2024-12-19 20:54:46 -05:00
|
|
|
use core::{repl::{handler::COMMAND_MANAGER, input::handle_repl, setup}, splash};
|
2024-12-01 16:02:06 -05:00
|
|
|
|
2024-12-19 20:54:46 -05:00
|
|
|
use anyhow::Ok;
|
2024-12-02 11:51:39 -06:00
|
|
|
|
2024-12-01 16:02:06 -05:00
|
|
|
|
2024-12-19 20:54:46 -05:00
|
|
|
pub mod core;
|
2024-12-02 11:51:39 -06:00
|
|
|
|
2024-12-19 20:54:46 -05:00
|
|
|
#[tokio::main]
|
|
|
|
async fn main() -> anyhow::Result<()> {
|
|
|
|
setup();
|
|
|
|
splash::print_splash();
|
|
|
|
COMMAND_MANAGER.read().execute("help", None)?;
|
|
|
|
let t = tokio::spawn(handle_repl());
|
2024-12-02 11:51:39 -06:00
|
|
|
|
2024-12-19 20:54:46 -05:00
|
|
|
t.await??;
|
2024-12-02 11:51:39 -06:00
|
|
|
|
2024-12-01 16:02:06 -05:00
|
|
|
Ok(())
|
2024-12-19 20:54:46 -05:00
|
|
|
|
2024-12-01 16:02:06 -05:00
|
|
|
}
|