Start working on the tree system again.

This commit is contained in:
Michael Mikovsky
2026-02-15 17:59:35 -07:00
parent 2a18639d84
commit ffde84e60c
5 changed files with 142 additions and 59 deletions
+6 -30
View File
@@ -1,9 +1,4 @@
use unshell::{
Value, info,
logger::{Record, log},
obfuscate::{junk_asm, symbol},
tree::{Tree, TreeElement, symbols},
};
use unshell::{info, tree::Tree};
fn main() {
let mut manager = Tree::new();
@@ -12,34 +7,15 @@ fn main() {
info!("Test thing!");
info!("Test thing!");
loop {
if test123(&mut manager) {
break;
}
}
// loop {
// if test123(&mut manager) {
// break;
// }
// }
// println!("Test");
}
fn test123(manager: &mut Tree) -> bool {
let result = manager.send_message(
Value::String(symbol!("Logger").to_string()),
Value::String(symbols::CMD_GET.to_string()),
);
junk_asm!(20.);
let is_null = result.is_null();
if let Ok(result) = serde_json::from_value::<Record>(result) {
log(&result);
}
is_null
// println!("Logger: {}", result);
}
// use std::{any::Any, collections::HashMap, fs::File, io::Read};
// use static_init::dynamic;