Shelli is a simple class library to run things in your shell, tested on both Windows, Ubuntu, and Mac.
using HeyShelli;
Shelli shell = new Shelli();
int returnCode = shell.Go("dir /w");
Want console output from the command that was executed?
shell.OutputDataReceived = (s) => if (!String.IsNullOrEmpty(s)) Console.WriteLine(s);
shell.ErrorDataReceived = (s) => if (!String.IsNullOrEmpty(s)) Console.WriteLine(s);
Want to specify the shell used?
shell.WindowsShell = "cmd.exe";
shell.LinuxShell = "sh";
The library is designed to be really light with not much configuration. If you have an enhancement, please feel free to either 1) file an issue, 2) submit a PR, or 3) simply clone and use the code as you see fit (MIT license).
Thanks to the authors that provided the free logo found here: https://www.clipartmax.com/middle/m2i8d3G6m2b1b1b1_conch-shell-free-icon-conch-icon/