monitor: add long help for commands

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga
2023-05-29 23:16:27 +09:00
parent 17bdbbd3c3
commit cafeedba79
10 changed files with 118 additions and 19 deletions

View File

@ -38,9 +38,14 @@ type Monitor interface {
// CommandInfo is information about a command.
type CommandInfo struct {
// Name is the name of the command.
Name string
// HelpMessage is the message printed to the console when "help" command is invoked.
// HelpMessage is one-line message printed to the console when "help" command is invoked.
HelpMessage string
// HelpMessageLong is a detailed message printed to the console when "help" command prints this command's information.
HelpMessageLong string
}
// Command represents a command for debugging.