2 Commits

4 changed files with 8 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
[![License](https://img.shields.io/github/license/guardutils/filedust?style=flat)](LICENCE)
[![Language](https://img.shields.io/github/languages/top/guardutils/filedust.svg)](https://github.com/guardutils/filedust/)
![GitHub Release](https://img.shields.io/github/v/release/guardutils/filedust?display_name=release&logo=github)
![PyPI - Version](https://img.shields.io/pypi/v/filedust?logo=pypi)
[![GitHub Release](https://img.shields.io/github/v/release/guardutils/filedust?display_name=release&logo=github)](https://github.com/guardutils/filedust/releases)
[![PyPI - Version](https://img.shields.io/pypi/v/filedust?logo=pypi)](https://pypi.org/project/filedust/#history)
[![PyPI downloads](https://img.shields.io/pypi/dm/filedust.svg)](https://pypi.org/project/filedust/)
# filedust

2
poetry.lock generated
View File

@@ -555,4 +555,4 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess
[metadata]
lock-version = "2.0"
python-versions = ">=3.10,<4.0"
content-hash = "676393f654b241eb2ea6f983d589e83daff16e0b0ca2cb76228c0cd5ed447591"
content-hash = "5ffc6940e33919ad5c8107dde30e6203d63a3bb64eaab81013cde2e773964657"

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "filedust"
version = "0.3.0"
version = "0.3.1"
description = "Opinionated junk cleaner for dev machines (caches, build artifacts, editor backups)."
authors = ["Marco D'Aleo <marco@marcodaleo.com>"]
license = "GPL-3.0-or-later"
@@ -11,8 +11,8 @@ packages = [{ include = "filedust", from = "src" }]
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
rich = "^13.0.0"
argcomplete = "^3.3.0"
rich = ">=12"
argcomplete = ">=2"
[tool.poetry.scripts]
filedust = "filedust.cli:main"

View File

@@ -168,7 +168,6 @@ def delete_all(findings: List[Finding]) -> int:
def main(argv: list[str] | None = None) -> int:
print("Looking for junk ...")
parser = build_parser()
args = parser.parse_args(argv)
@@ -191,6 +190,8 @@ def main(argv: list[str] | None = None) -> int:
console.print(f"[red]Error:[/] Path not found: {root}")
return 1
print("Looking for junk ...")
if root.resolve() == Path("/"):
console.print(
"[yellow]Running filedust on the entire filesystem (/). "