Skip to main content
Version: 3.x

shellcheck CLI reference

ModularPipelines.Shellcheck provides strongly typed access to the shellcheck CLI.

Installation

dotnet add package ModularPipelines.Shellcheck

Import ModularPipelines.Shellcheck.Extensions, then resolve the service with context.Shellcheck().

Module example

using ModularPipelines.Context;
using ModularPipelines.Models;
using ModularPipelines.Modules;
using ModularPipelines.Shellcheck.Extensions;
using ModularPipelines.Shellcheck.Options;

public class RunCommandModule : Module<CommandResult>
{
protected override async Task<CommandResult?> ExecuteAsync(
IModuleContext context,
CancellationToken cancellationToken)
{
return await context.Shellcheck().Execute(
new ShellcheckExecuteOptions(),
cancellationToken: cancellationToken);
}
}

Commands

CLI commandOptions record
shellcheckShellcheckExecuteOptions