Commit 8d813402 by Sébastien Eustace

Update CLI colors

parent f4492d28
...@@ -69,7 +69,7 @@ lists all packages available.""" ...@@ -69,7 +69,7 @@ lists all packages available."""
return 0 return 0
rows = [ rows = [
["<info>name</>", " : <fg=cyan>{}</>".format(pkg.pretty_name)], ["<info>name</>", " : <info>{}</>".format(pkg.pretty_name)],
["<info>version</>", " : <comment>{}</>".format(pkg.pretty_version)], ["<info>version</>", " : <comment>{}</>".format(pkg.pretty_version)],
["<info>description</>", " : {}".format(pkg.description)], ["<info>description</>", " : {}".format(pkg.description)],
] ]
...@@ -144,7 +144,7 @@ lists all packages available.""" ...@@ -144,7 +144,7 @@ lists all packages available."""
write_description = name_length + version_length + latest_length + 24 <= width write_description = name_length + version_length + latest_length + 24 <= width
for locked in locked_packages: for locked in locked_packages:
color = "green" color = "cyan"
name = locked.pretty_name name = locked.pretty_name
install_marker = "" install_marker = ""
if locked in skipped: if locked in skipped:
...@@ -165,7 +165,7 @@ lists all packages available.""" ...@@ -165,7 +165,7 @@ lists all packages available."""
color, name, name_length - len(install_marker), install_marker color, name, name_length - len(install_marker), install_marker
) )
if write_version: if write_version:
line += " <comment>{:{}}</comment>".format( line += " <b>{:{}}</b>".format(
locked.full_pretty_version, version_length locked.full_pretty_version, version_length
) )
if show_latest: if show_latest:
...@@ -205,7 +205,7 @@ lists all packages available.""" ...@@ -205,7 +205,7 @@ lists all packages available."""
if package.description: if package.description:
description = " " + package.description description = " " + package.description
io.write_line(" {}{}".format(package.pretty_version, description)) io.write_line(" <b>{}</b>{}".format(package.pretty_version, description))
dependencies = package.requires dependencies = package.requires
dependencies = sorted(dependencies, key=lambda x: x.name) dependencies = sorted(dependencies, key=lambda x: x.name)
......
...@@ -15,8 +15,9 @@ class ApplicationConfig(BaseApplicationConfig): ...@@ -15,8 +15,9 @@ class ApplicationConfig(BaseApplicationConfig):
def configure(self): def configure(self):
super(ApplicationConfig, self).configure() super(ApplicationConfig, self).configure()
self.add_style(Style("c1").fg("green")) self.add_style(Style("c1").fg("cyan"))
self.add_style(Style("comment").fg("cyan")) self.add_style(Style("info").fg("cyan"))
self.add_style(Style("comment").fg("green"))
self.add_style(Style("error").fg("red").bold()) self.add_style(Style("error").fg("red").bold())
self.add_style(Style("warning").fg("yellow")) self.add_style(Style("warning").fg("yellow"))
self.add_style(Style("debug").fg("black").bold()) self.add_style(Style("debug").fg("black").bold())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment