1 unstable release

0.1.0 Jul 27, 2021

#43 in #glob

GPL-3.0 license

19KB
76 lines

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$"

Dependencies

~3–12MB
~103K SLoC