mirror of
https://github.com/platformio/platformio-core.git
synced 2026-05-03 19:40:48 +02:00
Filter boards by ID+Name
This commit is contained in:
@@ -32,7 +32,7 @@ def cli(query, installed, json_output): # pylint: disable=R0912
|
||||
|
||||
grpboards = {}
|
||||
for board in _get_boards(installed):
|
||||
if query and query.lower() not in json.dumps(board).lower():
|
||||
if query and not any(query.lower() in board[k] for k in ("id", "name")):
|
||||
continue
|
||||
if board["platform"] not in grpboards:
|
||||
grpboards[board["platform"]] = []
|
||||
|
||||
Reference in New Issue
Block a user