mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
This rewrites the entire project so that most runnable projects now use `xous-ipc` instead of `xous::String` where possible. This also removes `rkyv` from the list of dependencies in `xous-rs`. Signed-off-by: Sean Cross <sean@xobs.io>
14 lines
344 B
Rust
14 lines
344 B
Rust
use crate::{ShellCmdApi, CommonEnv};
|
|
use xous_ipc::String;
|
|
|
|
#[derive(Debug)]
|
|
pub struct Echo {
|
|
}
|
|
|
|
impl<'a> ShellCmdApi<'a> for Echo {
|
|
cmd_api!(echo); // inserts boilerplate for command API
|
|
|
|
fn process(&mut self, args: String::<1024>, _env: &mut CommonEnv) -> Result<Option<String::<1024>>, xous::Error> {
|
|
Ok(Some(args))
|
|
}
|
|
}
|