Skip to content

JSON Response to lib Commands #96

Closed
@GItThatSparrow

Description

@GItThatSparrow

AS A User

I NEED TO determine the result of a call to the arduino-cli based on the response
AND the command specifies the --format=json parameter

SO THAT I can distinguish the difference in between a successful operation and a failed operation


Example

I issue a command like

>> arduino-cli lib install AudioZero@1.0.0 --format=json

But the response is empty, like:

>> arduino-cli lib install AudioZero@1.0.0 --format=json

>>

Equivalent example download

Same result when I issue a command like

>> arduino-cli lib download AudioZero --format=json   # or...
>> arduino-cli lib download AudioZero@1.0.0 --format=json

But the response is empty, like:

>> arduino-cli lib download AudioZero --format=json # or....

>>
>> arduino-cli lib download AudioZero@1.0.0 --format=json

>>

Equivalent example list

Same result when I issue a command like

>> arduino-cli lib list --format=json

But the response is empty, like:

>> arduino-cli lib list --format=json

>>

Equivalent example uninstall

Same result when I issue a command like

>> arduino-cli lib uninstall AudioZero@1.0.0 --format=json

But the response is empty, like:

>> arduino-cli lib uninstall AudioZero@1.0.0 --format=json

>>

Equivalent example update-index

Same result when I issue a command like

>> arduino-cli lib update-index --format=json

But the response is empty, like:

>> arduino-cli lib update-index --format=json

>>

Equivalent example upgrade

Same result when I issue a command like

>> arduino-cli lib upgrade --format=json

But the response is empty, like:

>> arduino-cli lib upgrade --format=json

>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions