use crate::{ShellCmdApi, CommonEnv}; use xous::String; #[derive(Debug)] pub struct Echo { } const VERB: &str = "echo"; impl<'a> ShellCmdApi<'a> for Echo { fn matches(&self, verb: &str) -> bool { if verb == VERB { true } else { false } } fn process(&mut self, rest: String::<1024>, _env: &mut CommonEnv) -> Result>, xous::Error> { Ok(Some(rest)) } fn verb(&self) -> &'static str { VERB } }