Function shell2batch::convert [] [src]

pub fn convert(script: &str) -> String

Converts the provided shell script and returns the windows batch script text.

Example

extern crate shell2batch;

fn main() {
    let script = shell2batch::convert("rm ./myfile.txt");

    assert_eq!(script, "del ./myfile.txt");
    println!("Script: {}", script);
}