Updated for color

This commit is contained in:
Dimitris Zlatanidis 2024-05-10 23:55:25 +03:00
parent ff6dc7668d
commit a52e929f01

View file

@ -104,13 +104,15 @@ class Tracking(Configs): # pylint: disable=[R0902]
Args:
require (str): Require name.
"""
self.require_line: str = f'{self.cyan}{require}{self.endc}'
color: str = self.cyan
if require not in self.data:
self.require_line: str = f'{self.red}{require}{self.endc}'
color: str = self.red
self.require_line: str = f'{color}{require}{self.endc}'
if self.option_for_pkg_version:
self.set_package_dependency_version(require)
self.require_line: str = (f'{self.cyan}{require:<{self.require_length}}{self.endc}'
self.require_line: str = (f'{color}{require:<{self.require_length}}{self.endc}'
f'{self.package_dependency_version}')
def set_package_dependency_version(self, require: str) -> None: