libplugin: handle check for our commands.

We don't thoroughly handle `check setconfig`: it would be good to
allow this to do further checking!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-04-04 14:06:12 +10:30
parent 11ffbc305e
commit fc21fc56dc
4 changed files with 75 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ struct command {
const char *id;
const char *methodname;
bool usage_only;
bool check;
struct plugin *plugin;
/* Optional output field filter. */
struct json_filter *filter;