mirror of https://gitlab.com/bashrc2/epicyon
Upper case title
parent
988925b285
commit
73b028ce1c
|
@ -35,6 +35,8 @@ from pgp import pgpDecrypt
|
||||||
from pgp import hasLocalPGPkey
|
from pgp import hasLocalPGPkey
|
||||||
from pgp import pgpEncryptToActor
|
from pgp import pgpEncryptToActor
|
||||||
|
|
||||||
|
indent = ' '
|
||||||
|
|
||||||
|
|
||||||
def _clearScreen() -> None:
|
def _clearScreen() -> None:
|
||||||
os.system('cls' if os.name == 'nt' else 'clear')
|
os.system('cls' if os.name == 'nt' else 'clear')
|
||||||
|
@ -356,7 +358,6 @@ def _showLocalBox(boxName: str,
|
||||||
startPostIndex=0, noOfPosts=10) -> None:
|
startPostIndex=0, noOfPosts=10) -> None:
|
||||||
"""Shows locally stored posts for a given subdirectory
|
"""Shows locally stored posts for a given subdirectory
|
||||||
"""
|
"""
|
||||||
indent = ' '
|
|
||||||
homeDir = str(Path.home())
|
homeDir = str(Path.home())
|
||||||
if not os.path.isdir(homeDir + '/.config'):
|
if not os.path.isdir(homeDir + '/.config'):
|
||||||
os.mkdir(homeDir + '/.config')
|
os.mkdir(homeDir + '/.config')
|
||||||
|
@ -385,7 +386,7 @@ def _showLocalBox(boxName: str,
|
||||||
banner = bannerFile.read()
|
banner = bannerFile.read()
|
||||||
if banner:
|
if banner:
|
||||||
print(banner + '\n')
|
print(banner + '\n')
|
||||||
print('\n' + indent + boxName.capitalize() + '\n')
|
print(indent + boxName.upper() + '\n')
|
||||||
|
|
||||||
maxPostIndex = len(index)
|
maxPostIndex = len(index)
|
||||||
index.sort(reverse=True)
|
index.sort(reverse=True)
|
||||||
|
|
Loading…
Reference in New Issue