pub fn register_cmd(
name: &'static [u8],
help: &'static [u8],
handler: CmdFn,
) -> Result<()>Expand description
Register a shell command with a safe Rust handler.
name and help must be \0-terminated &'static byte slices.
A single trampoline dispatches to the correct handler by matching argv[0].
ยงErrors
Returns Error::NoMemory when the internal command table is full
(capacity is 16 commands).