Skip to content

Shelli is a simple static class to run things in your shell, tested on both Windows and Ubuntu.

License

Notifications You must be signed in to change notification settings

jchristn/Shelli

Repository files navigation

Shelli

Shelli is a simple class library to run things in your shell, tested on both Windows, Ubuntu, and Mac.

NuGet Version NuGet

Usage

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";

Need More Capabilities?

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).

Special Thanks

Thanks to the authors that provided the free logo found here: https://www.clipartmax.com/middle/m2i8d3G6m2b1b1b1_conch-shell-free-icon-conch-icon/

About

Shelli is a simple static class to run things in your shell, tested on both Windows and Ubuntu.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages