sanitize

Crates.iosanitize
lib.rssanitize
version0.1.0
sourcesrc
created_at2023-02-05 11:31:13.903309
updated_at2023-02-05 11:31:13.903309
descriptionA simple command line tool for sanitizing a directory
homepagehttps://github.com/jhheider/sanitizer
repositoryhttps://github.com/jhheider/sanitizer
max_upload_size
id776967
size50,060
Jacob Heider (jhheider)

documentation

README

GitHub release (latest by date) Test with Code Coverage Check and Lint Coverage Status

sanitize

Simple command-line tool to sanitize a directory to a specific whitelist, written in Rust.

Install

cargo install sanitize or, for tea users, tea +crates.io/sanitize true.

Usage

Well, thanks to clap, the help system flows nicely from the implementation:

A simple command line tool for sanitizing a directory

Usage: sanitize [OPTIONS] [path]

Arguments:
  [path]  the directory to sanitize

Options:
  -f, --file <file>  the entries to keep, one per line
                     if not passed, will use stdin
                     format is the same as .*ignore files
  -n, --dry-run      don't actually delete anything
  -y, --yes          don't ask for confirmation (dangerous, but very, very useful)
      --unsafe       allow unsafe operation (sanitize $HOME)
  -v, --verbose...   increase verbosity (can be used multiple times)
  -h, --help         Print help
  -V, --version      Print version
Commit count: 0

cargo fmt