19 stable releases
| 1.6.1 | Jan 5, 2026 |
|---|---|
| 1.4.2 | Oct 24, 2025 |
| 1.1.1 | Apr 10, 2025 |
| 1.0.10 | Dec 29, 2024 |
| 0.1.0 | Dec 19, 2023 |
#1426 in Command line utilities
43KB
812 lines
notox

no toxic names anymore. May looks like detox.
Usage
# installation
cargo install notox
notox --do my_path
By default, notox will only print the names that would be renamed. Use the
--door-doption to actually rename the files.
Options
| Option | Description |
|---|---|
-v, --version |
Prints version information |
-d, --do |
Do the actions (rename) |
-q, --quiet |
No output |
-j, --json |
Output as JSON |
-p, --json-pretty |
Output as JSON (prettified) |
-e, --json-error |
Output as JSON (only errors) |
Usage as lib
use std::collections::HashSet;
use std::path::PathBuf;
use notox::{Notox, NotoxArgs, NotoxOutput};
let paths: HashSet<PathBuf> = HashSet::from(["README.md".into(), "Cargo.toml".into()]);
let notox_args = NotoxArgs {
dry_run: true, // change here
// if using serde
// output: NotoxOutput::JsonOutput {
// json: JsonOutput::JsonDefault,
// pretty: false,
// },
output: NotoxOutput::Quiet
};
let notox_inst = Notox::new(notox_args);
let res = notox_inst.run(&paths);
// to print them
notox_inst.print_output(res);
Infos
License
Dependencies
~1.3–2.3MB
~47K SLoC