mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Updated for repository name
This commit is contained in:
parent
05a34b03f1
commit
e7ea4adacc
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
4.5.8 - 09/03/2023
|
||||
Updated:
|
||||
- View the name of the repository instead of the size
|
||||
|
||||
4.5.7 - 07/03/2023
|
||||
Added:
|
||||
- Ignore comments for list.pkgs files (Thanks to rizitis)
|
||||
|
|
|
@ -49,6 +49,10 @@ class Ascii(Configs):
|
|||
self.bgreen: str = f'{self.bold}{self.green}'
|
||||
self.bred: str = f'{self.bold}{self.red}'
|
||||
|
||||
self.repo: str = 'sbo'
|
||||
if self.ponce_repo:
|
||||
self.repo: str = 'ponce'
|
||||
|
||||
def draw_package_title_box(self, message: str, title: str) -> None:
|
||||
""" Drawing package title box. """
|
||||
middle_title: int = int((self.columns / 2) - len(title) + 6)
|
||||
|
@ -67,13 +71,13 @@ class Ascii(Configs):
|
|||
self.draw_middle_line()
|
||||
|
||||
print(f'{self.bgreen}{self.vertical_line}{self.endc} Package:' + ' ' * 27 + 'Version:' +
|
||||
' ' * (self.columns - 51) + f'Size{self.bgreen} {self.vertical_line}{self.endc}')
|
||||
' ' * (self.columns - 57) + f'Repository{self.bgreen} {self.vertical_line}{self.endc}')
|
||||
|
||||
def draw_view_package(self, package: str, version: str, color: str) -> None:
|
||||
""" Draw nad print the packages. """
|
||||
print(f'{self.bgreen}{self.vertical_line} {self.bold}{color}{package}{self.endc}' + ' ' * (35 - len(package)) +
|
||||
f'{self.blue}{version}' + ' ' * ((self.columns - 37) - len(version) - 1) +
|
||||
f'{self.bgreen}{self.vertical_line}{self.endc}')
|
||||
f'{self.yellow}{version}' + ' ' * ((self.columns - 39) - len(version) - len(self.repo)) +
|
||||
f'{self.blue}{self.repo} {self.bgreen}{self.vertical_line}{self.endc}')
|
||||
|
||||
def draw_log_package(self, package: str) -> None:
|
||||
""" Drawing and print logs packages. """
|
||||
|
|
Loading…
Reference in a new issue