mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
improve bao-console interaction and add pddb mount call
This commit is contained in:
parent
3e981f5b4a
commit
feeaa6341c
2 changed files with 6 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue