Shelli 2.0.0

dotnet add package Shelli --version 2.0.0                
NuGet\Install-Package Shelli -Version 2.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Shelli" Version="2.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Shelli --version 2.0.0                
#r "nuget: Shelli, 2.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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.

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/

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
2.0.0 218 6/5/2024
1.1.2 122 6/5/2024
1.1.0 129 6/5/2024
1.0.1 2,502 7/31/2023
1.0.0 9,870 5/19/2022

Migrate away from static class