-
-
Notifications
You must be signed in to change notification settings - Fork 398
JSON Response to lib Commands #96
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
Comments
This is really important. I'm working on a python wrapper to have a thin compile server installable on clients (ala codebender, but running locally), and having some json return all the time is mandatory. Even if the json contains just error = true / error = false In the meantime, I will check if the error codes returned are consistent (I hope they are :-) ) |
@philippejadin you can probably now use the new GRPC interface. This bug is still confirmed and I am not use if best to return an empty json or something like |
I think when invoking the CLI process the source of truth should always be the process exit code. If the exit code is Different topic is whether printing an empty JSON object |
ok to have completely no output, it respects the UNIX phylosophy. I believe now the main issue is some commands returns code different from 0 even if the command run successfully (i.e. running twice lib install with the same libs) |
The expected behavior is:
I'm going to close this as what we have in |
AS A User
I NEED TO determine the result of a call to the
arduino-cli
based on the responseAND the command specifies the
--format=json
parameterSO THAT I can distinguish the difference in between a successful operation and a failed operation
Example
I issue a command like
But the response is empty, like:
Equivalent example
download
Same result when I issue a command like
But the response is empty, like:
Equivalent example
list
Same result when I issue a command like
But the response is empty, like:
Equivalent example
uninstall
Same result when I issue a command like
But the response is empty, like:
Equivalent example
update-index
Same result when I issue a command like
But the response is empty, like:
Equivalent example
upgrade
Same result when I issue a command like
But the response is empty, like:
The text was updated successfully, but these errors were encountered: