Please check if the PR fulfills these requirements
See how to contribute
What kind of change does this PR introduce?
Enhances output of an existing command.
What is the current behavior?
lib deps
command output is non deterministic and always changes on subsequent calls, both in plain text and JSON.
$ ino lib deps Arduino_ConnectionHandler
✕ Arduino_ConnectionHandler 0.6.5 deve essere installato.
✕ Arduino_DebugUtils 1.1.0 deve essere installato.
✓ WiFi101 0.16.1 è già installato.
✕ WiFiNINA 1.8.13 deve essere installato.
✕ MKRGSM 1.5.0 deve essere installato.
✕ MKRNB 1.5.1 deve essere installato.
✓ MKRWAN 1.1.0 è già installato.
$ ino lib deps Arduino_ConnectionHandler
✕ MKRNB 1.5.1 deve essere installato.
✓ MKRWAN 1.1.0 è già installato.
✕ Arduino_ConnectionHandler 0.6.5 deve essere installato.
✕ Arduino_DebugUtils 1.1.0 deve essere installato.
✓ WiFi101 0.16.1 è già installato.
✕ WiFiNINA 1.8.13 deve essere installato.
✕ MKRGSM 1.5.0 deve essere installato.
$ ino lib deps Arduino_ConnectionHandler
✕ WiFiNINA 1.8.13 deve essere installato.
✕ MKRGSM 1.5.0 deve essere installato.
✕ MKRNB 1.5.1 deve essere installato.
✓ MKRWAN 1.1.0 è già installato.
✕ Arduino_ConnectionHandler 0.6.5 deve essere installato.
✕ Arduino_DebugUtils 1.1.0 deve essere installato.
✓ WiFi101 0.16.1 è già installato.
What is the new behavior?
Output of lib deps
is now sorted alphabetically both in plain text and JSON.
In plain text it's also sorted by installation state, dependencies that are installed are shown first.
Example plain text output:
$ ino lib deps Arduino_ConnectionHandler
✓ MKRWAN 1.1.0 è già installato.
✓ WiFi101 0.16.1 è già installato.
✕ Arduino_ConnectionHandler 0.6.5 deve essere installato.
✕ Arduino_DebugUtils 1.1.0 deve essere installato.
✕ MKRGSM 1.5.0 deve essere installato.
✕ MKRNB 1.5.1 deve essere installato.
✕ WiFiNINA 1.8.13 deve essere installato.
Example json output:
$ ino lib deps Arduino_ConnectionHandler --format json
{
"dependencies": [
{
"name": "Arduino_ConnectionHandler",
"version_required": "0.6.5"
},
{
"name": "Arduino_DebugUtils",
"version_required": "1.1.0"
},
{
"name": "MKRGSM",
"version_required": "1.5.0"
},
{
"name": "MKRNB",
"version_required": "1.5.1"
},
{
"name": "MKRWAN",
"version_required": "1.1.0",
"version_installed": "1.1.0"
},
{
"name": "WiFi101",
"version_required": "0.16.1",
"version_installed": "0.16.1"
},
{
"name": "WiFiNINA",
"version_required": "1.8.13"
}
]
}
Does this PR introduce a breaking change, and is titled accordingly?
Nope.
Other information
This will ease integration testing for a PR that fixes #1856.
Please check if the PR fulfills these requirements
See how to contribute
before creating one)
our contributing guidelines
UPGRADING.md
has been updated with a migration guide (for breaking changes)What kind of change does this PR introduce?
Enhances output of an existing command.
What is the current behavior?
lib deps
command output is non deterministic and always changes on subsequent calls, both in plain text and JSON.What is the new behavior?
Output of
lib deps
is now sorted alphabetically both in plain text and JSON.In plain text it's also sorted by installation state, dependencies that are installed are shown first.
Example plain text output:
Example json output:
Does this PR introduce a breaking change, and is titled accordingly?
Nope.
Other information
This will ease integration testing for a PR that fixes #1856.