| 314 | static size_t num_cmdlist; |
| 315 | |
| 316 | static struct json_command **get_cmdlist(void) |
| 317 | { |
| 318 | static struct json_command **cmdlist; |
| 319 | if (!cmdlist) |
| 320 | cmdlist = autodata_get(json_command, &num_cmdlist); |
| 321 | |
| 322 | return cmdlist; |
| 323 | } |
| 324 | |
| 325 | static void json_add_help_command(struct command *cmd, |
| 326 | struct json_stream *response, |