Rename test module, kinda get connection working.

This commit is contained in:
Michael Mikovsky
2025-11-08 10:30:21 -07:00
parent b6b665dfad
commit 8f33945633
19 changed files with 669 additions and 143 deletions
+38
View File
@@ -0,0 +1,38 @@
use unshell_modules::{Manager, Module, ModuleError, module_interface};
#[macro_use]
extern crate log;
module_interface! {
Interface {
fn test1();
fn test2();
fn test3();
}
}
fn main() {
// Init the logger (This uses like 600MB of storage)
pretty_env_logger::init();
info!("Initialized");
match || -> Result<(), ModuleError> {
let args = std::env::args();
let mut modules = Vec::new();
for arg in args.skip(1) {
info!("Loading module: {}", arg);
modules.push(Module::new(&arg)?)
}
Manager::run(modules);
// manager.join();
Ok(())
}() {
Ok(_) => {}
Err(e) => {
error!("ERROR! {:?}", e);
}
}
}