Standardly.Commands
3.0.0
Prefix Reserved
See the version list below for details.
dotnet add package Standardly.Commands --version 3.0.0
NuGet\Install-Package Standardly.Commands -Version 3.0.0
<PackageReference Include="Standardly.Commands" Version="3.0.0" />
<PackageVersion Include="Standardly.Commands" Version="3.0.0" />
<PackageReference Include="Standardly.Commands" />
paket add Standardly.Commands --version 3.0.0
#r "nuget: Standardly.Commands, 3.0.0"
#addin nuget:?package=Standardly.Commands&version=3.0.0
#tool nuget:?package=Standardly.Commands&version=3.0.0
<p align="center"> <img src="https://github.com/cjdutoit/Standardly.Commands/blob/main/Resources/Banner.png?raw=true"> </p>
Standardly.Commands
Standardly.Commands is a small .Net library designed to provide a command execution engine that .Net developers can use to run CLI commands sequentially.
How It Works
You setup the client and then you can either pass in a single command OR a list of commands to the ExecuteCommand
method. The output from the CLI commands is collated and returned on completion for logging or presentation.
string command = "echo Hello World!";
using (CommandClient commandClient = new CommandClient("cmd.exe"))
{
CommandResult result = commandClient.ExecuteCommand(command);
}
OR
List<string> commands =
new List<string>
{
"echo Hello World!"
};
using (CommandClient commandClient = new CommandClient("cmd.exe"))
{
List<CommandResult> result = await commandClient.ExecuteCommandAsync(commands);
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- System.Threading.Tasks.Extensions (>= 4.6.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Standardly.Commands:
Package | Downloads |
---|---|
Standardly.Core
A Template Engine For Generating Standard Compliant Code |
GitHub repositories
This package is not used by any popular GitHub repositories.
Introduces CancellationToken support for graceful command cancellation and adds thread safety for reliable concurrent execution.