Skip to content
This repository was archived by the owner on May 15, 2023. It is now read-only.

Add flag to read JSON from file#75

Open
emersion wants to merge 1 commit into
ascent12:masterfrom
emersion:input
Open

Add flag to read JSON from file#75
emersion wants to merge 1 commit into
ascent12:masterfrom
emersion:input

Conversation

@emersion
Copy link
Copy Markdown
Collaborator

@emersion emersion commented Jul 9, 2021

A new -i flag is introduced to allow users to pretty-print a JSON
dump. Users can now share JSON dumps, and optionally post-process
them, e.g. this can be used to only print the connectors:

drm_info -j | jq '. | map_values(. | {driver,device,connectors,encoders:[],crtcs:[],planes:[]})' | drm_info -i

A new -i flag is introduced to allow users to pretty-print a JSON
dump. Users can now share JSON dumps, and optionally post-process
them, e.g. this can be used to only print the connectors:

    drm_info -j | jq '. | map_values(. | {driver,device,connectors,encoders:[],crtcs:[],planes:[]})' | drm_info -i
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant