Updated for vertical print

This commit is contained in:
Dimitris Zlatanidis 2023-01-17 20:32:44 +02:00
parent 42e1d43163
commit 9f4df08ba0

View file

@ -14,6 +14,7 @@ class Tracking(Configs):
self.ascii = Ascii()
self.llc = self.ascii.lower_left_corner
self.hl = self.ascii.horizontal_line
self.vl = self.ascii.vertical_line
self.color = self.colour()
self.cyan = self.color['cyan']
self.grey = self.color['grey']
@ -25,6 +26,7 @@ class Tracking(Configs):
print(f"The list below shows the packages with dependencies:\n")
char = f' {self.llc}{self.hl}'
sp = ' ' * 4
for package in packages:
requires = Requires(package).resolve()
how_many = len(requires)
@ -33,5 +35,10 @@ class Tracking(Configs):
requires = ['No dependencies']
print(f'{self.yellow}{package}{self.endc}')
print(f'{char} {self.cyan}{" ".join([req for req in requires])}{self.endc}')
print(char, end='')
for i, req in enumerate(requires, start=1):
if i == 1:
print(f' {self.cyan}{req}{self.endc}')
else:
print(f'{sp}{self.cyan}{req}{self.endc}')
print(f'\n{self.grey}{how_many} dependencies for {package}{self.endc}\n')