This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Yarn.
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 |
options when running 'yarn audit' |
Return Value
Type | Description |
---|---|
IYarnRunnerCommands |