forked from platformio/platformio-core
Improve boards search
This commit is contained in:
2
docs
2
docs
Submodule docs updated: 4752b52323...f7b734d766
@@ -32,7 +32,10 @@ def cli(query, installed, json_output): # pylint: disable=R0912
|
|||||||
|
|
||||||
grpboards = {}
|
grpboards = {}
|
||||||
for board in _get_boards(installed):
|
for board in _get_boards(installed):
|
||||||
if query and not any(query.lower() in board[k] for k in ("id", "name")):
|
if query and not any(
|
||||||
|
query.lower() in str(board.get(k, "")).lower()
|
||||||
|
for k in ("id", "name", "mcu", "vendor", "platform", "frameworks")
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
if board["platform"] not in grpboards:
|
if board["platform"] not in grpboards:
|
||||||
grpboards[board["platform"]] = []
|
grpboards[board["platform"]] = []
|
||||||
|
Reference in New Issue
Block a user