mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for ascii
This commit is contained in:
parent
983432aa90
commit
c940b03632
1 changed files with 3 additions and 2 deletions
|
@ -3,13 +3,14 @@
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from slpkg.configs import Configs
|
from slpkg.configs import Configs
|
||||||
|
from slpkg.views.asciibox import AsciiBox
|
||||||
|
|
||||||
class SBoGenerate(Configs):
|
class SBoGenerate(Configs):
|
||||||
""" Generating the SLACKBUILDS.TXT file. """
|
""" Generating the SLACKBUILDS.TXT file. """
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(Configs, self).__init__()
|
super(Configs, self).__init__()
|
||||||
|
self.ascii = AsciiBox()
|
||||||
|
|
||||||
def slackbuild_file(self, repo_path: Path, repo_slackbuild_txt: str) -> None:
|
def slackbuild_file(self, repo_path: Path, repo_slackbuild_txt: str) -> None:
|
||||||
print(f'Generating the {repo_slackbuild_txt} file... ', end='', flush=True)
|
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(f'SLACKBUILD SHORT DESCRIPTION: {short_description}\n')
|
||||||
sbo.write('\n')
|
sbo.write('\n')
|
||||||
|
|
||||||
print(f'{self.byellow}Done{self.endc}\n')
|
print(f'{self.byellow}{self.ascii.done}{self.endc}\n')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def read_short_description(path: Path, name: str) -> str:
|
def read_short_description(path: Path, name: str) -> str:
|
||||||
|
|
Loading…
Add table
Reference in a new issue