rapiddisk icon indicating copy to clipboard operation
rapiddisk copied to clipboard

[feature request] please output structured JSON

Open tobwen opened this issue 1 year ago • 1 comments

feature request

Insane of web-style JSON format, please use a parseable one. I would be interested in the reasons why you use such a notation for a CLI tool.

example

rapiddisk -a 20000 -j

current

{
    "status": "Success",
    "message": "Attached device rd0 of size 20000 Mbytes."
}

expected

{
    "status": "success",
    "attached device": "rd0",
    "size": 20000000
}

And maybe also expose the device's location in dev-mapper...

/dev/disk/by-id/dm-name-rc-wt_XXXXX
/dev/dm-XXXXX

tobwen avatar Sep 03 '23 19:09 tobwen

Insane of web-style JSON format, please use a parseable one. I would be interested in the reasons why you use such a notation for a CLI tool.

@tobwen Can you give me some link to/clues about the format you consider best suited?

matteotenca avatar Oct 24 '23 10:10 matteotenca