improve bao-console interaction and add pddb mount call

This commit is contained in:
bunnie 2025-05-06 02:06:41 +08:00
parent 3e981f5b4a
commit feeaa6341c
2 changed files with 6 additions and 2 deletions

View file

@ -14,7 +14,11 @@ pub struct PddbCmd {
pddb: pddb::Pddb,
}
impl PddbCmd {
pub fn new() -> Self { PddbCmd { pddb: pddb::Pddb::new() } }
pub fn new() -> Self {
let pddb = pddb::Pddb::new();
log::info!("PDDB mount result: {:?}", pddb.try_mount());
PddbCmd { pddb }
}
}
impl<'a> ShellCmdApi<'a> for PddbCmd {

View file

@ -74,7 +74,7 @@ impl Repl {
// side effect our commands
// take the input and pass it on to the various command parsers, and attach result
if let Some(local) = &mut self.input {
log::trace!("processing line: {}", local);
println!("[console] {}", local);
if let Some(res) = self.env.dispatch(Some(local), None).expect("command dispatch failed") {
println!("{}", res);
}