forked from platformio/platformio-core
Minor improvements to pkg show layout
This commit is contained in:
@ -59,14 +59,6 @@ def package_show_cmd(spec, pkg_type):
|
||||
)
|
||||
)
|
||||
|
||||
click.echo()
|
||||
type_plural = "libraries" if data["type"] == "library" else (data["type"] + "s")
|
||||
click.secho(
|
||||
"https://registry.platformio.org/%s/%s/%s"
|
||||
% (type_plural, data["owner"]["username"], quote(data["name"])),
|
||||
fg="blue",
|
||||
)
|
||||
|
||||
# Description
|
||||
click.echo()
|
||||
click.echo(data["description"])
|
||||
@ -87,7 +79,17 @@ def package_show_cmd(spec, pkg_type):
|
||||
("frameworks", "Compatible Frameworks"),
|
||||
("keywords", "Keywords"),
|
||||
]
|
||||
extra = []
|
||||
type_plural = "libraries" if data["type"] == "library" else (data["type"] + "s")
|
||||
extra = [
|
||||
(
|
||||
"Registry",
|
||||
click.style(
|
||||
"https://registry.platformio.org/%s/%s/%s"
|
||||
% (type_plural, data["owner"]["username"], quote(data["name"])),
|
||||
fg="blue",
|
||||
),
|
||||
)
|
||||
]
|
||||
for key, title in fields:
|
||||
if "." in key:
|
||||
k1, k2 = key.split(".")
|
||||
|
Reference in New Issue
Block a user