Added color for readme

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2022-10-24 20:15:15 +03:00
parent 496ccc25ec
commit 53fd7bf9c1

View file

@ -22,6 +22,7 @@ class ViewPackage:
GREEN = color['GREEN'] GREEN = color['GREEN']
BLUE = color['BLUE'] BLUE = color['BLUE']
YELLOW = color['YELLOW'] YELLOW = color['YELLOW']
CYAN = color['CYAN']
ENDC = color['ENDC'] ENDC = color['ENDC']
for package in packages: for package in packages:
@ -51,4 +52,4 @@ class ViewPackage:
f'Files: {GREEN}{info[7]}{ENDC}\n' f'Files: {GREEN}{info[7]}{ENDC}\n'
f'Description: {GREEN}{info[8]}{ENDC}\n' f'Description: {GREEN}{info[8]}{ENDC}\n'
f'SBo url: {BLUE}{self.sbo_repo_url}/{info[9]}/{info[0]}{ENDC}\n' f'SBo url: {BLUE}{self.sbo_repo_url}/{info[9]}/{info[0]}{ENDC}\n'
f'README: {readme.data.decode()}') f'README: {CYAN}{readme.data.decode()}{ENDC}')