Updated for ascii

This commit is contained in:
Dimitris Zlatanidis 2024-03-17 21:08:34 +02:00
parent 983432aa90
commit c940b03632

View file

@ -3,13 +3,14 @@
from pathlib import Path
from slpkg.configs import Configs
from slpkg.views.asciibox import AsciiBox
class SBoGenerate(Configs):
""" Generating the SLACKBUILDS.TXT file. """
def __init__(self):
super(Configs, self).__init__()
self.ascii = AsciiBox()
def slackbuild_file(self, repo_path: Path, repo_slackbuild_txt: str) -> None:
print(f'Generating the {repo_slackbuild_txt} file... ', end='', flush=True)
@ -74,7 +75,7 @@ class SBoGenerate(Configs):
sbo.write(f'SLACKBUILD SHORT DESCRIPTION: {short_description}\n')
sbo.write('\n')
print(f'{self.byellow}Done{self.endc}\n')
print(f'{self.byellow}{self.ascii.done}{self.endc}\n')
@staticmethod
def read_short_description(path: Path, name: str) -> str: