mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-25 09:58:41 +01:00
Updated for color
This commit is contained in:
parent
ff6dc7668d
commit
a52e929f01
1 changed files with 5 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue