mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 02:27:13 +02:00
Print "No items found" when there are no packages for llisting
This commit is contained in:
@ -277,6 +277,8 @@ def lib_list(ctx, json_output):
|
|||||||
else:
|
else:
|
||||||
for item in sorted(items, key=lambda i: i['name']):
|
for item in sorted(items, key=lambda i: i['name']):
|
||||||
print_lib_item(item)
|
print_lib_item(item)
|
||||||
|
else:
|
||||||
|
click.echo("No items found")
|
||||||
|
|
||||||
if json_output:
|
if json_output:
|
||||||
return click.echo(
|
return click.echo(
|
||||||
|
Reference in New Issue
Block a user