cli: Sort human_readable output by categories

A new field is available in the command json object : 'category' (corresponding to whether "bitcoin", "channel", "network", "payment", "plugin", "utility", "developer"). We use it to printf commands ordered by categories.

credits @rustyrussel
This commit is contained in:
darosior
2019-05-23 15:10:41 +02:00
committed by Rusty Russell
parent 9d34121ec5
commit b1bbafb19c
2 changed files with 100 additions and 14 deletions

View File

@@ -1,3 +1,4 @@
#include "config.h"
#include <assert.h>
#include <common/amount.h>
#include <fcntl.h>