Skip to content

yonasBSD/notox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notox crates.io version crates.io downloads docs.rs

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 --do or -d option 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

About

no toxic names anymore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%