dusage 0.2.0

💾 A command line disk usage information tool. Disk usage percentage is displayed in a bar with the inode usage percentage as background.
Documentation
extern crate clap;
extern crate colored;
extern crate nix;
use clap::crate_version;
use clap::{App, Arg};

#[cfg(not(tarpaulin_include))]
fn main() {
    let args = App::new(concat!(
        env!("CARGO_CRATE_NAME"),
        " ",
        env!("CARGO_PKG_VERSION"),
        " :: ",
        concat!(
            env!("CARGO_PKG_REPOSITORY"),
            "/releases/tag/",
            crate_version!()
        )
    ))
    .author(env!("CARGO_PKG_AUTHORS"))
    .about(env!("CARGO_PKG_DESCRIPTION"))
    .arg(
        Arg::with_name("debug")
            .long("debug")
            .short("d")
            .help("Print raw data used in statistics."),
    )
    .arg(
        Arg::with_name("inodes")
            .long("inodes")
            .short("i")
            .help("Display inode information."),
    )
    .get_matches_safe()
    .unwrap_or_else(|e| e.exit());

    dusage::driver::Driver::drive(args);
}