mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 10:54:27 +02:00
Show only the package name in "cyan" color
This commit is contained in:
@@ -59,7 +59,8 @@ def humanize_package(pkg, spec=None, verbose=False):
|
|||||||
if spec and not isinstance(spec, PackageSpec):
|
if spec and not isinstance(spec, PackageSpec):
|
||||||
spec = PackageSpec(spec)
|
spec = PackageSpec(spec)
|
||||||
data = [
|
data = [
|
||||||
click.style("{name} @ {version}".format(**pkg.metadata.as_dict()), fg="cyan")
|
click.style(pkg.metadata.name, fg="cyan"),
|
||||||
|
click.style(f"@ {str(pkg.metadata.version)}", bold=True),
|
||||||
]
|
]
|
||||||
extra_data = ["required: %s" % (spec.humanize() if spec else "Any")]
|
extra_data = ["required: %s" % (spec.humanize() if spec else "Any")]
|
||||||
if verbose:
|
if verbose:
|
||||||
|
Reference in New Issue
Block a user