xous-core/services/shellchat/src/cmds/echo.rs
bunnie f64d0351a4 format services/shellchat
a big bank of AES tests got formatted. I think it's NBD,
the constants for AES testing are...not changing.
2024-01-14 22:41:26 +08:00

20 lines
376 B
Rust

use xous_ipc::String;
use crate::{CommonEnv, ShellCmdApi};
#[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))
}
}