Skip to content

Add json output to list command#143

Open
bartmeuris wants to merge 2 commits into
jakehilborn:masterfrom
bartmeuris:master
Open

Add json output to list command#143
bartmeuris wants to merge 2 commits into
jakehilborn:masterfrom
bartmeuris:master

Conversation

@bartmeuris
Copy link
Copy Markdown

Addressing #141 - this adds JSON output to the list command when adding the --json flag.

I tried my best to keep the normal list output exactly the same as the last version available on homebrew:

$ displayplacer --version
displayplacer v1.4.0

Developer: Jake Hilborn
GitHub: https://github.com/jakehilborn/displayplacer
LinkedIn: https://www.linkedin.com/in/jakehilborn
Email: jakehilborn@gmail
$ displayplacer list > list_old
$ make && ./displayplacer list > list_new
$ diff list_new list_old
$

No attempt has been made to format the JSON output, I leave that to external tools like jq.

@milichev
Copy link
Copy Markdown

@jakehilborn, I'd be excited to hear about any progress on this feature

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants