mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +01:00
Updated for vertical print
This commit is contained in:
parent
42e1d43163
commit
9f4df08ba0
1 changed files with 8 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue