add json output mode to enumerate_devices#31
Open
omerk wants to merge 1 commit into
Open
Conversation
Koromix
force-pushed
the
master
branch
7 times, most recently
from
August 3, 2020 06:31
b2b10d1 to
4eabcad
Compare
Koromix
force-pushed
the
master
branch
2 times, most recently
from
January 18, 2021 22:36
103a1dc to
6449e1f
Compare
Koromix
force-pushed
the
master
branch
4 times, most recently
from
November 2, 2021 21:59
b802c6e to
b1875b7
Compare
Koromix
force-pushed
the
master
branch
2 times, most recently
from
November 20, 2021 08:09
bcdf7cf to
120509e
Compare
Koromix
force-pushed
the
master
branch
4 times, most recently
from
January 1, 2022 06:36
807479e to
dbcd980
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This quick PR adds primitive JSON output mode to the
enumerate_devicescommand, through the--jsoncommand line parameter.Output example here: https://gist.github.com/omerk/673b956f9051ca5a7654a4d131288dd5
Generated JSON structure:

I needed this functionality, thought it might be of some use to others as well.
Thanks.