feat: more spinner

This commit is contained in:
Daylin Morgan 2023-08-21 12:08:23 -05:00
parent 2adcd6faf4
commit 0392c6f0e7
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -52,7 +52,7 @@ from typing import (
Union,
)
__version__ = "23.8b2-1-g17785a6-dev"
__version__ = "23.8b2-2-g2adcd6f-dev"
class Spinner:
@ -1393,8 +1393,9 @@ class Viv:
for name in vivenvs:
vivenv = self._match_vivenv(name)
if vivenv.path.is_dir():
log.info(f"removing {vivenv.name}")
with Spinner(f"removing vivenv {a.bold}{vivenv.name}{a.end}"):
shutil.rmtree(vivenv.path)
log.info(f"{a.bold}{vivenv.name}{a.end} succesfully removed")
else:
err_quit(
f"cowardly exiting because I didn't find vivenv: {name}",