Command Prompt Package
Helpers for executing Windows Command Prompt commands.
Installation
dotnet add package ModularPipelines.Cmd
Required command-line tool: cmd. It must be installed and available on PATH when the pipeline runs.
Context entry points
Import ModularPipelines.Cmd.Extensions, then use this service from a module:
context.Cmd()
Module example
using ModularPipelines.Cmd.Extensions;
public class UseCmdModule : SyncModule
{
protected override void ExecuteModule(
IModuleContext context,
CancellationToken cancellationToken)
{
var cmd = context.Cmd();
// Call the integration's strongly typed operations here.
context.Logger.LogInformation("Cmd integration is ready");
}
}
The package exposes generated options records for its supported CLI commands.