file_alphabetizer 1.0.0

An executable that alphabetizes an entire file.
Documentation

Github CI

file_alphabetizer

An library that alphabetizes a given file. Can be used as a crate in your own applications or as a standalone binary

Usage

Within a Rust project

  1. Import the library into your Cargo.toml like so:
    [dependencies] 
        file_alphabetizer = "1.0"
    
  2. Import the crate and use the alphabetize method, like so. (Currently, path starts at parent directory of code calling it):
        use std::{path::PathBuf};
        use file_alphabetizer;
    
        fn main() {
            let path = PathBuf::from("src/test");
            file_alphabetizer::alphabetize(&path).unwrap();
        }
    

As a CLI tool

  1. Run cargo run from the command line, within the project's directory.