scriptkit 1.0.0

A simple scripting Tool Kit for Rust
Documentation
scriptkit-1.0.0 has been yanked.

ScriptKit

A simple toolkit for shell scripting in Rust!

Basic Usage

use scriptkit::shell::{Cmd, Arg, shell_tools::sh};
#[allow(unused_imports)] 
use scriptkit::sys::{OS, os_eye::open};

fn print_host() {
    println!("Executed On: {:?}", open().name);
}

fn main() {
    // Construct your command!
    let cmd = Cmd::new("echo");
    
    // Construct your argument!
    let arg = Arg::new("Hello World");
    
    // Execute the command!
    sh(cmd, arg).expect("Failed to run command");
    
    print_host();
}