mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
libplugin.c: Handle command categories then set them in pay and autoclean
This commit is contained in:
@@ -452,14 +452,16 @@ handle_getmanifest(struct command *getmanifest_cmd,
|
||||
|
||||
for (size_t i = 0; i < num_commands; i++) {
|
||||
tal_append_fmt(¶ms, "{ 'name': '%s',"
|
||||
" 'usage': '%s',"
|
||||
" 'description': '%s'",
|
||||
" 'category': '%s',"
|
||||
" 'usage': '%s',"
|
||||
" 'description': '%s'",
|
||||
commands[i].name,
|
||||
commands[i].category,
|
||||
strmap_get(&usagemap, commands[i].name),
|
||||
commands[i].description);
|
||||
if (commands[i].long_description)
|
||||
tal_append_fmt(¶ms,
|
||||
" 'long_description': '%s'",
|
||||
" 'long_description': '%s'",
|
||||
commands[i].long_description);
|
||||
tal_append_fmt(¶ms,
|
||||
"}%s", i == num_commands - 1 ? "" : ",\n");
|
||||
|
||||
Reference in New Issue
Block a user