register_cmd

Function register_cmd 

Source
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].