mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 02:27:13 +02:00
Extend JSON output when listing installed development platforms
This commit is contained in:
@ -138,7 +138,11 @@ def platform_list(json_output):
|
|||||||
"title": p.title,
|
"title": p.title,
|
||||||
"description": p.description,
|
"description": p.description,
|
||||||
"version": p.version,
|
"version": p.version,
|
||||||
"packages": p.get_installed_packages().keys()
|
"url": p.manifest.get("url"),
|
||||||
|
"packages": p.get_installed_packages().keys(),
|
||||||
|
'forDesktop': any([
|
||||||
|
p.name.startswith(n) for n in ("native", "linux", "windows")
|
||||||
|
])
|
||||||
})
|
})
|
||||||
|
|
||||||
if json_output:
|
if json_output:
|
||||||
|
Reference in New Issue
Block a user