Rainbow Dash
Command execution library for Linux/macOS and Windows.
Has functions with status and output variants.
Example usage:
Running a command that is the same on Linux/macOS and Windows:
let status = execute_command?;
println!; // true or false
Running a command with output that is the same on Linux/macOS and Windows:
let output = execute_command_with_return?;
println!; // Pinkie Pie is best pony!
If your commands are different on Linux/macOS and Windows, you can use the target-specific functions:
let status = execute_unix_command;
let status = execute_windows_command;
println!; // true or false