mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
Updated for tmp clean
This commit is contained in:
parent
7c47dcaa18
commit
a5292d9bf7
1 changed files with 8 additions and 0 deletions
|
@ -27,6 +27,7 @@ from slpkg.views.view_package import ViewPackage
|
|||
from slpkg.remove_packages import RemovePackages
|
||||
from slpkg.clean_logs import CleanLogsDependencies
|
||||
from slpkg.update_repository import UpdateRepository
|
||||
from slpkg.views.views import ViewMessage
|
||||
|
||||
|
||||
class Argparse(Configs):
|
||||
|
@ -464,8 +465,15 @@ class Argparse(Configs):
|
|||
def clean_tmp(self) -> None:
|
||||
if len(self.args) == 1:
|
||||
|
||||
print(f"\n[{self.bred}WARNING{self.endc}]: All the files in the '{self.tmp_path}{self.prog_name}' "
|
||||
f"folder will delete!")
|
||||
|
||||
views = ViewMessage(self.flags)
|
||||
views.question()
|
||||
|
||||
self.utils.remove_folder_if_exists(path=self.tmp_path, folder=self.prog_name)
|
||||
self.utils.create_folder(path=self.tmp_slpkg, folder='build')
|
||||
print(f"The folder '{self.tmp_path}{self.prog_name}' was cleaned!")
|
||||
|
||||
raise SystemExit()
|
||||
self.usage.help(1)
|
||||
|
|
Loading…
Reference in a new issue