mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Updated for error messages
This commit is contained in:
parent
faae341112
commit
b7c33ad523
3 changed files with 4 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
||||||
Updated:
|
Updated:
|
||||||
- For empty arguments
|
- For empty arguments
|
||||||
- Checks for invalid options
|
- Checks for invalid options
|
||||||
|
- The error messages
|
||||||
Added:
|
Added:
|
||||||
- Vimdiff in the slpkg_new-configs file (Thanks to tkor)
|
- Vimdiff in the slpkg_new-configs file (Thanks to tkor)
|
||||||
|
|
||||||
|
|
|
@ -471,7 +471,8 @@ class Argparse(Configs):
|
||||||
def clean_tmp(self) -> None:
|
def clean_tmp(self) -> None:
|
||||||
if len(self.args) == 1:
|
if len(self.args) == 1:
|
||||||
|
|
||||||
print(f"\n[{self.bred}WARNING{self.endc}]: All the files in the '{self.tmp_path}{self.prog_name}' "
|
print(f"\n{self.prog_name}: {self.bred}WARNING{self.endc}: All the files in the "
|
||||||
|
f"'{self.tmp_path}{self.prog_name}' "
|
||||||
f"folder will delete!")
|
f"folder will delete!")
|
||||||
|
|
||||||
views = ViewMessage(self.flags)
|
views = ViewMessage(self.flags)
|
||||||
|
|
|
@ -137,7 +137,7 @@ class UpdateRepository(Configs):
|
||||||
|
|
||||||
def drop_the_tables(self):
|
def drop_the_tables(self):
|
||||||
""" Drop all the tables from the database. """
|
""" Drop all the tables from the database. """
|
||||||
print(f'[{self.bred}WARNING{self.endc}]: All the data from the database will be deleted!')
|
print(f'\n{self.prog_name}: {self.bred}WARNING{self.endc}: All the data from the database will be deleted!')
|
||||||
self.view.question()
|
self.view.question()
|
||||||
|
|
||||||
tables: list = [PonceTable.__table__,
|
tables: list = [PonceTable.__table__,
|
||||||
|
|
Loading…
Add table
Reference in a new issue