![]() |
BSB Developer Docs
|
Command metadata and helpers. More...
#include "cli_command_min.h"#include <furi.h>#include <containers/pipe.h>#include <lib/flipper_application/flipper_application.h>Go to the source code of this file.
Data Structures | |
| struct | CliCommandDescriptor |
| struct | CliCommandExternalConfig |
| Configuration for locating external commands. More... | |
Macros | |
| #define | CLI_PLUGIN_API_VERSION 1 |
| #define | CLI_COMMAND_INTERFACE(name, execute_callback, flags, stack_depth, app_id) |
Functions | |
| bool | cli_is_pipe_broken_or_is_etx_next_char (PipeSide *side) |
| Detects if Ctrl+C has been pressed or session has been terminated. | |
| void | cli_print_usage (const char *cmd, const char *usage, const char *arg) |
| Print unified cmd usage tip. | |
Command metadata and helpers.
| #define CLI_COMMAND_INTERFACE | ( | name, | |
| execute_callback, | |||
| flags, | |||
| stack_depth, | |||
| app_id ) |
| bool cli_is_pipe_broken_or_is_etx_next_char | ( | PipeSide * | side | ) |
Detects if Ctrl+C has been pressed or session has been terminated.
| [in] | side | Pointer to pipe side given to the command thread |
| void cli_print_usage | ( | const char * | cmd, |
| const char * | usage, | ||
| const char * | arg ) |
Print unified cmd usage tip.
| cmd | cmd name |
| usage | usage tip |
| arg | arg passed by user |