We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dece790 commit e03deccCopy full SHA for e03decc
killpy/commands/clean.py
@@ -1,13 +1,16 @@
1
+import logging
2
from pathlib import Path
3
4
import click
5
6
from killpy.cleaners import remove_pycache
7
+from killpy.files import format_size
8
9
10
@click.command()
11
@click.option("--path", default=Path.cwd(), help="Path to the directory to clean")
12
def clean(path):
13
path = Path(path)
- click.echo(f"Executing the clean command in {path}")
- remove_pycache(path)
14
+ logging.info(f"Executing the clean command in {path}")
15
+ total_freed_space = remove_pycache(path)
16
+ logging.info(f"{format_size(total_freed_space)} deleted")
0 commit comments