| 268 | } |
| 269 | |
| 270 | static struct command_result *json_reckless(struct command *cmd, |
| 271 | const char *buf, |
| 272 | const jsmntok_t *params) |
| 273 | { |
| 274 | const char *command; |
| 275 | const char *target; |
| 276 | const char *target2; |
| 277 | /* Allow check command to evaluate. */ |
| 278 | if (!param(cmd, buf, params, |
| 279 | p_req("command", param_string, &command), |
| 280 | p_req("target/subcommand", param_string, &target), |
| 281 | p_opt("target", param_string, &target2), |
| 282 | NULL)) |
| 283 | return command_param_failed(); |
| 284 | return reckless_call(cmd, command, target, target2); |
| 285 | } |
| 286 | |
| 287 | static const char *init(struct command *init_cmd, |
| 288 | const char *buf UNUSED, |
nothing calls this directly
no test coverage detected