Command metadata and helpers.
CliCommandFlag
Definition cli_command.h:18
void(* CliCommandExecuteCallback)(PipeSide *pipe, FuriString *args, void *context)
CLI command execution callback pointer.
Definition cli_command.h:47
void cli_registry_delete_command(CliRegistry *registry, const char *name)
Deletes a cli command.
Definition cli_registry.c:70
void cli_registry_add_command(CliRegistry *registry, const char *name, CliCommandFlag flags, CliCommandExecuteCallback callback, void *context)
Registers a command with the registry.
Definition cli_registry.c:27
CliRegistry * cli_registry_alloc(void)
Allocates a CliRegistry.
Definition cli_registry.c:13
void cli_registry_reload_external_commands(CliRegistry *registry, const CliCommandExternalConfig *config)
Reloads the list of externally available commands.
Definition cli_registry.c:120
void cli_registry_add_command_ex(CliRegistry *registry, const char *name, CliCommandFlag flags, CliCommandExecuteCallback callback, void *context, size_t stack_size)
Registers a command with the registry.
Definition cli_registry.c:37
void cli_registry_free(CliRegistry *registry)
Frees a CliRegistry.
Definition cli_registry.c:20
void cli_registry_remove_external_commands(CliRegistry *registry)
Unregisters all external commands.
Definition cli_registry.c:102
Configuration for locating external commands.
Definition cli_command.h:59
Definition cli_registry.c:8