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

Add flag to read JSON from file #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emersion
Copy link
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