btl 0.1.0

Btl is a simple library that makes shell scripting with rust easier. It was originally written with the purposes of being used for build.rs files, but it can be used for more complex purposes. It's main premise is about making shell scripting easier to work with rust. This works both on windows and unix machines. Originally designed in linux, not tested on Windows or Mac yet, but they should work since the library is platform-agnostic.
Documentation






#[cfg(test)]
mod tests {
    use btl::*;

    #[test]
    fn shell() {

        let command = "mkdir";
        let arg = "xyz";
        btl! {
            "{} {}", command, arg;
        };

        
        btl! {
            "sleep 10";
        }
            
        btl! {
            "rmdir {}", arg;
        };

        shell! {
            "mkdir xyz";
            "sleep 10";
            "rmdir xyz";
        }

        btl! {
            "echo {}", 2;
        };

        btl! {
            cd ..
        };

        shell! {
            "ls -la";
            "pwd";
        };

        cd!{..};

    }

}