Skip to content
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

Add --json flag #40

Open
dhleong opened this issue May 2, 2017 · 1 comment
Open

Add --json flag #40

dhleong opened this issue May 2, 2017 · 1 comment
Labels
enhancement New feature or request

Comments

@dhleong
Copy link
Owner

dhleong commented May 2, 2017

This should suppress all intermediate console logs and just emit a single JSON object (or, when operating on multiple devices such as with search -t, one per line).

@dhleong dhleong added the enhancement New feature or request label May 2, 2017
@dhleong
Copy link
Owner Author

dhleong commented May 17, 2018

Alternatively, we could have different object "types," and always emit one JSON object per line. So output could look like:

{"type":"log","Searching..."}
{"type":"device","device":{...}}

This would allow ps4-waker to be embedded into apps written in other languages that can call out to the shell, for example. Such a protocol could also be extended to support input from stdin so that the ps4-waker cli app could be used to maintain persistent connections, but that would probably be a separate --rpc flag, or something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant