flipperzero_sys

Function 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 instance
  • name - command name
  • flags - CliCommandFlag
  • callback - callback function
  • context - pointer to whatever we need to pass to callback