Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] please output structured JSON #177

Open
tobwen opened this issue Sep 3, 2023 · 1 comment
Open

[feature request] please output structured JSON #177

tobwen opened this issue Sep 3, 2023 · 1 comment

Comments

@tobwen
Copy link

tobwen commented Sep 3, 2023

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
@matteotenca
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants