cachewipe

Crates.iocachewipe
lib.rscachewipe
version0.1.0
sourcesrc
created_at2021-07-27 16:52:19.045719
updated_at2021-07-27 16:52:19.045719
descriptionGlob file delete that respects gitignore
homepagehttps://github.com/ewpratten/cachewipe
repositoryhttps://github.com/ewpratten/cachewipe
max_upload_size
id428028
size51,972
Evan Pratten (ewpratten)

documentation

https://docs.rs/cachewipe

README

cachewipe

Crates.io Docs.rs Build Clippy Audit

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.

Installation

This crate can be installed via cargo with:

cargo install cachewipe

Usage

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$"
Commit count: 4

cargo fmt