jsonrpc: Add a category field to commands.

A new string field is added to the command structure and is specified at the creation of each native command, and in the JSON created by 'json_add_help_command()'.
This commit is contained in:
darosior
2019-05-22 16:08:16 +02:00
committed by Rusty Russell
parent 0c189fe3a7
commit 323adb467a
15 changed files with 78 additions and 21 deletions

View File

@@ -132,6 +132,7 @@ static struct command_result *json_ping(struct command *cmd,
static const struct json_command ping_command = {
"ping",
"network",
json_ping,
"Send peer {id} a ping of length {len} (default 128) asking for {pongbytes} (default 128)"
};