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

JSON output option #124

Open
pabs3 opened this Issue Nov 15, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@pabs3

pabs3 commented Nov 15, 2018

The uhubctl output currently requires custom parsing in order to use it in scripts. It would be nice to have an option for JSON output so that scripts can just use standard JSON parsing libraries to turn the output into a native data structure for their language.

BTW: I heard about uhubctl from this post:

https://joeyh.name/blog/entry/usb_drives_with_no_phantom_load/

@mvp

This comment has been minimized.

Owner

mvp commented Nov 15, 2018

Thanks for submitting this feature request.
Do you have specific output format in mind? It would be helpful if you can propose one.
It should not be difficult to add -j (--json) option for json output, but we need to create stable and perhaps extensible output convention.

@pabs3

This comment has been minimized.

pabs3 commented Nov 15, 2018

@mvp

This comment has been minimized.

Owner

mvp commented Nov 15, 2018

Thanks for insight, I like the idea. I will try to implement this soon, but it will require quite a rewrite for all reporting functions. It may take a while to do it, but at least it will justify making new official release :)

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