Skip to content

Commit 2ff3e55

Browse files
ShahanaFarooquirustyrussell
authored andcommitted
plugin: Removing category, description and long_description from plugin_command struct
Changelog-None.
1 parent b485a02 commit 2ff3e55

File tree

19 files changed

+5
-190
lines changed

19 files changed

+5
-190
lines changed

plugins/autoclean.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -793,15 +793,9 @@ static bool u64_jsonfmt_unless_zero(struct plugin *plugin,
793793

794794
static const struct plugin_command commands[] = { {
795795
"autoclean-status",
796-
"utility",
797-
"Show status of autocleaning",
798-
"Takes optional {subsystem}",
799796
json_autoclean_status,
800797
}, {
801798
"autoclean-once",
802-
"utility",
803-
"Perform a single run of autocleaning on one subsystem",
804-
"Requires {subsystem} and {age}",
805799
json_autoclean_once,
806800
},
807801
};

plugins/bcli.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,39 +1119,22 @@ static const char *init(struct plugin *p, const char *buffer UNUSED,
11191119
static const struct plugin_command commands[] = {
11201120
{
11211121
"getrawblockbyheight",
1122-
"bitcoin",
1123-
"Get the bitcoin block at a given height",
1124-
"",
11251122
getrawblockbyheight
11261123
},
11271124
{
11281125
"getchaininfo",
1129-
"bitcoin",
1130-
"Get the chain id, the header count, the block count,"
1131-
" and whether this is IBD.",
1132-
"",
11331126
getchaininfo
11341127
},
11351128
{
11361129
"estimatefees",
1137-
"bitcoin",
1138-
"Get the urgent, normal and slow Bitcoin feerates as"
1139-
" sat/kVB.",
1140-
"",
11411130
estimatefees
11421131
},
11431132
{
11441133
"sendrawtransaction",
1145-
"bitcoin",
1146-
"Send a raw transaction to the Bitcoin network.",
1147-
"",
11481134
sendrawtransaction
11491135
},
11501136
{
11511137
"getutxout",
1152-
"bitcoin",
1153-
"Get information about an output, identified by a {txid} an a {vout}",
1154-
"",
11551138
getutxout
11561139
},
11571140
};

plugins/bkpr/bookkeeper.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,48 +1752,26 @@ const struct plugin_notification notifs[] = {
17521752
static const struct plugin_command commands[] = {
17531753
{
17541754
"bkpr-listbalances",
1755-
"bookkeeping",
1756-
"List current account balances",
1757-
"List of current accounts and their balances",
17581755
json_list_balances
17591756
},
17601757
{
17611758
"bkpr-listaccountevents",
1762-
"bookkeeping",
1763-
"List all events for an {account}",
1764-
"List all events for an {account} (or all accounts, if"
1765-
" no account specified) in {format}. Sorted by timestamp",
17661759
json_list_account_events
17671760
},
17681761
{
17691762
"bkpr-inspect",
1770-
"utilities",
1771-
"See the current on-chain graph of an {account}",
1772-
"Prints out the on-chain footprint of a given {account}.",
17731763
json_inspect
17741764
},
17751765
{
17761766
"bkpr-listincome",
1777-
"bookkeeping",
1778-
"List all income impacting events",
1779-
"List all events for this node that impacted income",
17801767
json_list_income
17811768
},
17821769
{
17831770
"bkpr-dumpincomecsv",
1784-
"bookkeeping",
1785-
"Print out all the income events to a csv file in "
1786-
" {csv_format",
1787-
"Dump income statment data to {csv_file} in {csv_format}."
1788-
" Optionally, {consolidate_fee}s into single entries"
1789-
" (default: true)",
17901771
json_dump_income
17911772
},
17921773
{
17931774
"bkpr-channelsapy",
1794-
"bookkeeping",
1795-
"Stats on channel fund usage",
1796-
"Print out stats on chanenl fund usage",
17971775
json_channel_apy
17981776
},
17991777
};

plugins/chanbackup.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -815,18 +815,10 @@ static const struct plugin_hook hooks[] = {
815815
static const struct plugin_command commands[] = {
816816
{
817817
"emergencyrecover",
818-
"recovery",
819-
"Populates the DB with stub channels",
820-
"returns stub channel-id's on completion",
821818
json_emergencyrecover,
822819
},
823820
{
824821
"restorefrompeer",
825-
"recovery",
826-
"Checks if i have got a backup from a peer, and if so, will stub "
827-
"those channels in the database and if is successful, will return "
828-
"list of channels that have been successfully stubbed",
829-
"return channel-id's on completion",
830822
json_restorefrompeer,
831823
},
832824
};

plugins/commando.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -801,33 +801,21 @@ static const char *init(struct plugin *p,
801801

802802
static const struct plugin_command commands[] = { {
803803
"commando",
804-
"utility",
805-
"Send a commando message to a direct peer, wait for response",
806-
"Sends {peer_id} {method} with optional {params} and {rune}",
807804
json_commando,
808805
}, {
809806
"commando-rune",
810-
"utility",
811-
"Create or restrict a rune",
812-
"Takes an optional {rune} with optional {restrictions} and returns {rune}",
813807
json_commando_rune,
814808
"v23.08",
815809
"v25.02",
816810
},
817811
{
818812
"commando-listrunes",
819-
"utility",
820-
"List runes we have created earlier",
821-
"Takes an optional {rune} and returns list of {rune}",
822813
json_commando_listrunes,
823814
"v23.08",
824815
"v25.02",
825816
},
826817
{
827818
"commando-blacklist",
828-
"utility",
829-
"Blacklist a rune or range of runes by unique id",
830-
"Takes an optional {start} and an optional {end} and returns {blacklist} array containing {start}, {end}",
831819
json_commando_blacklist,
832820
"v23.08",
833821
"v25.02",

plugins/funder.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,11 +1432,6 @@ json_funderupdate(struct command *cmd,
14321432
static const struct plugin_command commands[] = {
14331433
{
14341434
"funderupdate",
1435-
"liquidity",
1436-
"Configuration for dual-funding settings.",
1437-
"Update current settings. Modifies how node reacts to"
1438-
" incoming channel open requests. Responds with list"
1439-
" of current configs.",
14401435
json_funderupdate
14411436
},
14421437
};

plugins/keysend.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,7 @@ static struct command_result *json_keysend(struct command *cmd, const char *buf,
307307
static const struct plugin_command commands[] = {
308308
{
309309
"keysend",
310-
"payment",
311-
"Send a payment without an invoice to a node",
312-
"Send an unsolicited payment of {amount} to {destination}, by providing the recipient the necessary information to claim the payment",
313-
json_keysend
310+
json_keysend
314311
},
315312
};
316313

plugins/libplugin.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,10 +1088,6 @@ handle_getmanifest(struct command *getmanifest_cmd,
10881088
json_add_string(params, "name", p->commands[i].name);
10891089
json_add_string(params, "usage",
10901090
strmap_get(&p->usagemap, p->commands[i].name));
1091-
json_add_string(params, "description", p->commands[i].description);
1092-
if (p->commands[i].long_description)
1093-
json_add_string(params, "long_description",
1094-
p->commands[i].long_description);
10951091
json_add_deprecated(params, "deprecated",
10961092
p->commands[i].depr_start, p->commands[i].depr_end);
10971093
json_object_end(params);

plugins/libplugin.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ struct command {
6262
/* Create an array of these, one for each command you support. */
6363
struct plugin_command {
6464
const char *name;
65-
const char *category;
66-
const char *description;
67-
const char *long_description;
6865
struct command_result *(*handle)(struct command *cmd,
6966
const char *buf,
7067
const jsmntok_t *params);

plugins/offers.c

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,44 +1396,26 @@ static const char *init(struct plugin *p,
13961396
static const struct plugin_command commands[] = {
13971397
{
13981398
"offer",
1399-
"payment",
1400-
"Create an offer to accept money",
1401-
"Create an offer for invoices of {amount} with {description}, optional {issuer}, internal {label}, {quantity_min}, {quantity_max}, {absolute_expiry}, {recurrence}, {recurrence_base}, {recurrence_paywindow}, {recurrence_limit} and {single_use}",
1402-
json_offer
1399+
json_offer
14031400
},
14041401
{
14051402
"invoicerequest",
1406-
"payment",
1407-
"Create an invoice_request to send money",
1408-
"Create an invoice_request to pay invoices of {amount} with {description}, optional {issuer}, internal {label}, and {absolute_expiry}",
1409-
json_invoicerequest
1403+
json_invoicerequest
14101404
},
14111405
{
14121406
"decode",
1413-
"utility",
1414-
"Decode {string} message, returning {type} and information.",
1415-
NULL,
14161407
json_decode,
14171408
},
14181409
{
14191410
"fetchinvoice",
1420-
"payment",
1421-
"Request remote node for an invoice for this {offer}, with {amount}, {quanitity}, {recurrence_counter}, {recurrence_start} and {recurrence_label} iff required.",
1422-
NULL,
14231411
json_fetchinvoice,
14241412
},
14251413
{
14261414
"sendinvoice",
1427-
"payment",
1428-
"Request remote node for to pay this {invreq}, with {label}, optional {amount_msat}, and {timeout} (default 90 seconds).",
1429-
NULL,
14301415
json_sendinvoice,
14311416
},
14321417
{
14331418
"dev-rawrequest",
1434-
"util",
1435-
"Send {invreq} to {nodeid}, wait {timeout} (60 seconds by default)",
1436-
NULL,
14371419
json_dev_rawrequest,
14381420
.dev_only = true,
14391421
},

0 commit comments

Comments
 (0)