exec .zenshell files + shell extensions

Co-authored-by: Tristan Poland (Trident_For_U) <tristanpoland@users.noreply.github.com>
This commit is contained in:
Chance 2024-12-06 15:54:31 -05:00 committed by BitSyndicate
parent e41464c653
commit 9750cefb29
Signed by: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
16 changed files with 494 additions and 37 deletions

View file

@ -2,6 +2,8 @@
use anyhow::Result;
use log::LevelFilter;
use plugin_api::plugin_imports::*;
use plugin_api::{get_plugin, PluginManager};
pub mod core;
pub mod utils;
@ -10,20 +12,26 @@ use utils::{logger::LOGGER, splash::print_splash};
#[tokio::main]
async fn main() -> Result<()> {
let t = zephyr::add(0, 2);
println!("{}", t);
// Load all plugins
log::set_logger(&*LOGGER).ok();
log::set_max_level(LevelFilter::Debug);
log::set_max_level(LevelFilter::Off);
print_splash();
let mut plugin_manager = PluginManager::new();
let plugins = plugin_manager.load_all();
println!("Plugins loaded: {:?}", plugins);
// Get the player plugin
let player_lib = get_plugin!(player_lib, plugins);
player_lib.test();
LOGGER.write_to_stdout();
let shell_thread = tokio::task::spawn(async { core::repl::repl::handle_repl().await });
core::init_renderer()?;
let _ = shell_thread.await?;
let _ = shell_thread.await??;
Ok(())
}