$ show rock3r/deep-clean
This repository contains a single Kotlin script, `deep-clean.main.kts`, which is a command-line tool for cleaning build caches and temporary files in Gradle and Android projects. The script provides options to clean local project directories (like 'build' and '.gradle'), remove IDE project files, and optionally clear global caches (Gradle, Maven, IDE settings) when the '--nuke' flag is used. It also kills related processes such as the Gradle daemon and ADB server. The script is built using the Clikt library for command-line argument parsing and features a set of well-designed helper functions for safe file operations (including dry-run, backup, and verbose modes). These helper functions, particularly the extension functions on File and Sequence<File> for deletion and backup, are well-crafted and could be reused in other projects with minimal modification.
The LLM identified 1 files worth highlighting for reuse:
The script includes a set of extension functions on File and Sequence<File> that provide a reusable, safe way to delete or backup files and directories. These functions support dry-run, verbose logging, recursive operations, and backup-by-renaming. They are decoupled from the main application logic and could be extracted into a standalone utility library for file operations.