mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-19 21:55:12 +00:00
16 lines
322 B
C#
16 lines
322 B
C#
using Cake.Common.Tools.DotNetCore;
|
|
using Cake.Frosting;
|
|
|
|
public sealed class FormatCode : FrostingTask<Context>
|
|
{
|
|
public override void Run(Context context)
|
|
{
|
|
context.DotNetCoreTool("format");
|
|
}
|
|
|
|
public override bool ShouldRun(Context context)
|
|
{
|
|
return context.IsLocalBuild;
|
|
}
|
|
}
|