Crates.io | cachewipe |
lib.rs | cachewipe |
version | 0.1.0 |
source | src |
created_at | 2021-07-27 16:52:19.045719 |
updated_at | 2021-07-27 16:52:19.045719 |
description | Glob file delete that respects gitignore |
homepage | https://github.com/ewpratten/cachewipe |
repository | https://github.com/ewpratten/cachewipe |
max_upload_size | |
id | 428028 |
size | 51,972 |
cachewipe
is a command line utility I originally built to wipe all PYC files from a Python monorepo, while respecting the gitignore (not deleting files that we want to keep). As of now, this tool is fully functional, but does not pay attention to gitignore due to some issues im having with the library.
This crate can be installed via cargo
with:
cargo install cachewipe
cachewipe 0.1.0
Evan Pratten <ewpratten@gmail.com>
Glob file delete that respects gitignore
USAGE:
cachewipe [FLAGS] [OPTIONS] <pattern>
FLAGS:
--dry-run Just print file paths to stdout. Don't delete anything
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-i, --ignore-root-dir <root_ignores>... Add a root-level directory to the list of dirs to ignore
ARGS:
<pattern> File or path REGEX pattern to delete
Example:
cachewipe ".*.pyc$"