deindentor

Crates.iodeindentor
lib.rsdeindentor
version1.1.1
sourcesrc
created_at2022-02-21 08:45:11.548205
updated_at2022-05-19 17:52:53.290935
descriptionA tool to reverse indentation in a file.
homepagehttps://github.com/yaxley-peaks/deindentor
repositoryhttps://github.com/yaxley-peaks/deindentor
max_upload_size
id536278
size10,952
yaxley "rivers" peaks (yaxley-peaks)

documentation

README

Crates.io Crates.io Rust

Reverses the indentation on your file

Usage

  1. Install with cargo.
cargo install deindentor
  1. Use it.
deindentor <INPUT-FILE> <OUTPUT-FILE>

Example

Before:

fn foo(){
    if true {
        println!("true");
    } else {
        println!("false");
    }
}

After:

        fn foo(){
    if true {
println!("true");
    } else {
println!("false");
    }
        }
Commit count: 24

cargo fmt