mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Updated dependees
This commit is contained in:
parent
983db71cd9
commit
3febb28c9d
1 changed files with 17 additions and 15 deletions
|
@ -23,7 +23,7 @@ class Dependees:
|
||||||
endc = color['endc']
|
endc = color['endc']
|
||||||
|
|
||||||
print(f"The list below shows the "
|
print(f"The list below shows the "
|
||||||
f"packages that dependees '{', '.join([p for p in self.packages])}' files:\n")
|
f"packages that dependees on '{', '.join([p for p in self.packages])}':\n")
|
||||||
|
|
||||||
print(end='\rCollecting the data... ')
|
print(end='\rCollecting the data... ')
|
||||||
|
|
||||||
|
@ -41,21 +41,23 @@ class Dependees:
|
||||||
|
|
||||||
last = ' └─'
|
last = ' └─'
|
||||||
print('\n')
|
print('\n')
|
||||||
|
if dependees:
|
||||||
|
for key, value in dependees.items():
|
||||||
|
print(f'{yellow}{key}{endc}')
|
||||||
|
print(end=f'\r{last}')
|
||||||
|
char = ' ├─'
|
||||||
|
|
||||||
for key, value in dependees.items():
|
for i, v in enumerate(value, start=1):
|
||||||
print(f'{yellow}{key}{endc}')
|
if i == len(value):
|
||||||
print(end=f'\r{last}')
|
char = last
|
||||||
char = ' ├─'
|
|
||||||
|
|
||||||
for i, v in enumerate(value, start=1):
|
if i == 1:
|
||||||
if i == len(value):
|
print(f'{cyan}{v}{endc}')
|
||||||
char = last
|
else:
|
||||||
|
print(f'{" " * 3}{cyan}{v}{endc}')
|
||||||
|
|
||||||
if i == 1:
|
print(f'{" " * 4}{char} {" ".join([req for req in SBoQueries(v).requires()])}')
|
||||||
print(f'{cyan}{v}{endc}')
|
|
||||||
else:
|
|
||||||
print(f'{" " * 3}{cyan}{v}{endc}')
|
|
||||||
|
|
||||||
print(f'{" " * 4}{char} {" ".join([req for req in SBoQueries(v).requires()])}')
|
print(f'\n{grey}{len(value)} dependees for {key}{endc}\n')
|
||||||
|
else:
|
||||||
print(f'\n{grey}{len(value)} dependees for {key}{endc}\n')
|
print('No dependees found.\n')
|
||||||
|
|
Loading…
Reference in a new issue