Shelli 2.0.0
dotnet add package Shelli --version 2.0.0
NuGet\Install-Package Shelli -Version 2.0.0
<PackageReference Include="Shelli" Version="2.0.0" />
paket add Shelli --version 2.0.0
#r "nuget: Shelli, 2.0.0"
// Install Shelli as a Cake Addin #addin nuget:?package=Shelli&version=2.0.0 // Install Shelli as a Cake Tool #tool nuget:?package=Shelli&version=2.0.0
<img src="https://github.com/jchristn/Shelli/raw/main/assets/icon.png" width="150" height="100">
Shelli
Shelli is a simple class library to run things in your shell, tested on both Windows, Ubuntu, and Mac.
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/
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- System.Text.Encoding.CodePages (>= 7.0.0)
-
net6.0
- System.Text.Encoding.CodePages (>= 7.0.0)
-
net7.0
- System.Text.Encoding.CodePages (>= 7.0.0)
-
net8.0
- System.Text.Encoding.CodePages (>= 7.0.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Shelli:
Package | Downloads |
---|---|
DocumentTextExtractor
Simple C# library for extracting text and metadata from .docx, .pptx, and .xlsx files |
|
PdfTextExtractor
A simple C# shell wrapper for the wonderful pdfplumber library in Python to extract text from .PDF files |
|
PythonSharp
PythonSharp is a simple library to integrate Python scripts and virtual environments into your application leveraging the shell. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Migrate away from static class