YarnRunner.

Audit(Action<YarnAuditSettings>) Method

Summary

execute 'yarn audit' with options
Assembly
Cake.Yarn.dll
Namespace
Cake.Yarn
Containing Type
YarnRunner

Syntax

public IYarnRunnerCommands Audit(Action<YarnAuditSettings> auditSettings = null)

Examples

Run 'yarn audit'

Task("Yarn-Audit")
    .Does(() =>
{
    Yarn.Audit();
});

Run 'yarn audit --verbose'

Task("Yarn-Set-Verbose")
    .Does(() =>
{
    Yarn.Audit(settings => settings.SetVerbose());
});

Run 'yarn audit --json'

Task("Yarn-Set-Json")
    .Does(() =>
{
    Yarn.Audit(settings => settings.SetJson());
});

Parameters

Name Type Description
auditSettings Action<YarnAuditSettings> options when running 'yarn audit'

Return Value

Type Description
IYarnRunnerCommands