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

json format output for commands #2

Closed
soldair opened this issue Jan 24, 2016 · 3 comments
Closed

json format output for commands #2

soldair opened this issue Jan 24, 2016 · 3 comments

Comments

@soldair
Copy link
Contributor

soldair commented Jan 24, 2016

in #1 i mentiond a --format json or --json flag

i said:
"I do think the tool should support something like a --json or --format json flag so commands like this can be consumed by other programs. This would allow refactor for readability of human output without introducing a breaking change. ill open an issue for discussion."

  • when we refactor for readability in the "human" version of the output. Programs parsing the output of nodemcu-tool will break.
  • If we provide an alternative computer friendly output format we don't have to worry about it and this tool becomes quite a bit more useful.
@AndiDittrich
Copy link
Owner

it's a great idea! for all operations or only for a special set ?

if you're using Node.js you can directly access the Connector API for low-level operations

@AndiDittrich
Copy link
Owner

Dear soldair,

i've added a JSON output option to the devices and fsinfo command. Additionally a global --silent option is available to reject status/logging messages.

i'm currently working on some return_codes to indicate program errors to an external process

@soldair
Copy link
Contributor Author

soldair commented Mar 29, 2016

cool. ill check it out. thanks!

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

No branches or pull requests

2 participants