#pragma once #include #include "cmd_base.h" #include "cmd_fs.h" #include "cmd_system.h" /* List of commands, help text and handler function. */ struct command_t { const char *cmd; const char *help; bool (*handler)(cmdargs_t *args); }; extern const struct command_t COMMANDS[]; extern const int COMMANDS_COUNT; /* The X-macros come from each header file. The syntax is: * X(cmd, help, handler), where: * - cmd is the command name typed by user, e.g. "ls" * - help is usage info, like "[FILE]" * - handler is a function name */ #define CMD_XMACROS \ CMD_FS_XMACRO \ CMD_SYSTEM_XMACRO