Shelli 2.0.1
dotnet add package Shelli --version 2.0.1
NuGet\Install-Package Shelli -Version 2.0.1
<PackageReference Include="Shelli" Version="2.0.1" />
<PackageVersion Include="Shelli" Version="2.0.1" />
<PackageReference Include="Shelli" />
paket add Shelli --version 2.0.1
#r "nuget: Shelli, 2.0.1"
#addin nuget:?package=Shelli&version=2.0.1
#tool nuget:?package=Shelli&version=2.0.1
<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 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. 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.0
- System.Text.Encoding.CodePages (>= 7.0.0)
-
.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 |
---|---|
PdfTextExtractor
A simple C# shell wrapper for the wonderful pdfplumber library in Python to extract text from .PDF files |
|
DocumentTextExtractor
Simple C# library for extracting text and metadata from .docx, .pptx, and .xlsx 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