mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-27 15:10:53 +00:00
Show io and core plugin version in the json listing ##core
This commit is contained in:
parent
a1d2851354
commit
d7f4f82f42
@ -626,6 +626,9 @@ static int cmd_plugins(void *data, const char *input) {
|
||||
pj_o (pj);
|
||||
pj_ks (pj, "name", cp->meta.name);
|
||||
pj_ks (pj, "desc", cp->meta.desc);
|
||||
if (cp->meta.version) {
|
||||
pj_ks (pj, "version", cp->meta.version);
|
||||
}
|
||||
pj_ks (pj, "license", cp->meta.license? cp->meta.license: "???");
|
||||
if (cp->meta.author) {
|
||||
pj_ks (pj, "author", cp->meta.author);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* radare - LGPL - Copyright 2008-2022 - pancake */
|
||||
/* radare - LGPL - Copyright 2008-2024 - pancake */
|
||||
|
||||
#include <r_io.h>
|
||||
#include "config.h"
|
||||
@ -123,6 +123,9 @@ R_API int r_io_plugin_list_json(RIO *io) {
|
||||
if (plugin->meta.license) {
|
||||
pj_ks (pj, "license", plugin->meta.license);
|
||||
}
|
||||
if (plugin->meta.version) {
|
||||
pj_ks (pj, "version", plugin->meta.version);
|
||||
}
|
||||
if (plugin->uris) {
|
||||
char *uri;
|
||||
char *uris = strdup (plugin->uris);
|
||||
|
Loading…
Reference in New Issue
Block a user