YarnRunner.

Cache(string, Action<YarnCacheSettings>) Method

Summary

execute 'yarn cache' with arguments
Assembly
Cake.Yarn.dll
Namespace
Cake.Yarn
Containing Type
YarnRunner

Syntax

public IYarnRunnerCommands Cache(string subCommand, Action<YarnCacheSettings> configure = null)

Examples

Run 'yarn cache clean'

Task("Yarn-Clean")
    .Does(() =>
{
    Yarn.Cache("clean");
});

Parameters

Name Type Description
subCommand string subcommand of cache to run
configure Action<YarnCacheSettings>

Return Value

Type Description
IYarnRunnerCommands