Function flipperzero_sys::cli_add_command
source · pub unsafe extern "C" fn cli_add_command(
cli: *mut Cli,
name: *const c_char,
flags: CliCommandFlag,
callback: CliCallback,
context: *mut c_void,
)Expand description
Add cli command Registers you command callback
§Arguments
cli- pointer to cli instancename- command nameflags- CliCommandFlagcallback- callback functioncontext- pointer to whatever we need to pass to callback