WatchAlias.

Watch(ICakeContext, string, Action<IEnumerable<FileChange>>) Method

Summary

Watch files in current directory.
Assembly
Cake.Watch.dll
Namespace
Cake.Watch
Containing Type
WatchAlias

Syntax

public static void Watch(this ICakeContext context, string pattern, Action<IEnumerable<FileChange>> fileChanged)

Examples

Watch("*.html", changes => {
    changes.ToList().ForEach(change => {
        Console.WriteLine(change.FullPath);        
    });
});

Attributes

Type Description
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext
pattern string
fileChanged Action<IEnumerable<FileChange>>

Return Value

Type Description
void