shell2batch 0.1.1

Coverts simple basic shell scripts to windows batch scripts.
Documentation

shell2batch

crates.io Build Status Build status codecov license Libraries.io for GitHub Documentation downloads Built with cargo-make

Coverts simple basic shell scripts to windows batch scripts.

Overview

While it is not really possible to take every shell script and automatically convert it to a windows batch file, this library provides a way to convert simple basic shell commands to windows batch commands. The original goal of this library is to provide users of cargo-make a way to write simple tasks with shell scripts without duplicating their code for each platform.

Usage

Simply include the library and invoke the convert function as follows:

extern crate shell2batch;

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

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

Installation

In order to use this library, just add it as a dependency:

[dependencies]
shell2batch = "*"

API Documentation

See full docs at: API Docs

Contributing

See contributing guide

Release History

Date Version Description
2017-10-21 v0.1.1 Additional commands added.
2017-10-21 v0.1.0 Initial release.

License

Developed by Sagie Gur-Ari and licensed under the Apache 2 open source license.