mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-09 19:13:14 -06:00
feat: more spinner
This commit is contained in:
parent
2adcd6faf4
commit
0392c6f0e7
1 changed files with 4 additions and 3 deletions
|
@ -52,7 +52,7 @@ from typing import (
|
||||||
Union,
|
Union,
|
||||||
)
|
)
|
||||||
|
|
||||||
__version__ = "23.8b2-1-g17785a6-dev"
|
__version__ = "23.8b2-2-g2adcd6f-dev"
|
||||||
|
|
||||||
|
|
||||||
class Spinner:
|
class Spinner:
|
||||||
|
@ -1393,8 +1393,9 @@ class Viv:
|
||||||
for name in vivenvs:
|
for name in vivenvs:
|
||||||
vivenv = self._match_vivenv(name)
|
vivenv = self._match_vivenv(name)
|
||||||
if vivenv.path.is_dir():
|
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)
|
shutil.rmtree(vivenv.path)
|
||||||
|
log.info(f"{a.bold}{vivenv.name}{a.end} succesfully removed")
|
||||||
else:
|
else:
|
||||||
err_quit(
|
err_quit(
|
||||||
f"cowardly exiting because I didn't find vivenv: {name}",
|
f"cowardly exiting because I didn't find vivenv: {name}",
|
||||||
|
|
Loading…
Reference in a new issue