mmcli: add json output support

Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
This commit is contained in:
Maxim Anisimov
2019-08-08 11:12:33 +03:00
committed by Aleksander Morgado
parent b0ec3030a3
commit d1ac5ca16b
3 changed files with 133 additions and 3 deletions

View File

@@ -285,6 +285,7 @@ typedef enum {
MMC_OUTPUT_TYPE_NONE,
MMC_OUTPUT_TYPE_HUMAN,
MMC_OUTPUT_TYPE_KEYVALUE,
MMC_OUTPUT_TYPE_JSON
} MmcOutputType;
void mmcli_output_set (MmcOutputType type);