wsl-dirutils 0.1.0

The cli tool that wraps directory/path-related commands in wslpath.
Documentation
use colored::Colorize;
use std::process::exit;

pub enum UsageType {
    Root,
    CmdConvert,
}

pub fn show_usage_and_exit(usage_type: UsageType) {
    match usage_type {
        UsageType::Root => {
            eprintln!("{}", "Usage: wsl-dirutils <convert|pwd>".red());
        }
        UsageType::CmdConvert => {
            eprintln!("{}", "Usage: wsl-dirutils convert <path>".red());
        }
    }
    exit(1);
}