rusty-detox 0.1.0

Sanitize messy filenames — a Rust port of Doug Harple's `detox(1)` with the filter pipeline (uncgi, iso8859_1, utf_8, safe, wipeup, max_length), `detoxrc` config grammar, recursive collision-safe batch rename, EXDEV cross-device fallback, and a typed library API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Shared fixture helpers for integration tests (T036).

use assert_cmd::Command;

/// Command for the `rusty-detox` binary.
pub fn rusty_detox_cmd() -> Command {
    Command::cargo_bin("rusty-detox").expect("binary built")
}

/// Command for the `inline-detox` companion binary (cfg by `inline-detox` feature).
#[allow(dead_code)]
pub fn inline_detox_cmd() -> Command {
    Command::cargo_bin("inline-detox").expect("binary built (requires --features inline-detox)")
}