Skip to content

Add command description support for the SHELL_CMD #1

@vpetrigo

Description

@vpetrigo

Hello,

I would like to propose a change in the SHELL_CMD structure that allows a user to provide theirs own command description that may be used in the help command for example:

  • Proposed changes:
typedef struct shell_cmd {
    const CPU_CHAR *Name; ///< Ptr to cmd name.
    SHELL_CMD_FNCT Fnct;   ///< Ptr to cmd fnct.
    const CPU_CHAR *Descr; ///< Ptr to cmd description.
}
  • Outcome for the help command (implementation specific):
help: Print commands info
status: Print system status
reboot: Perform software reboot
bootloader: Switch into the bootloader application

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions