public static void JekyllClean(this ICakeContext context, JekyllCleanSettings settings) { if (context is null) { throw new ArgumentNullException(nameof(context)); } if (settings is null) { throw new ArgumentNullException(nameof(settings)); } AddinInformation.LogVersionInformation(context.Log); var command = new JekyllCleanCommand(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); command.Clean(settings); }
protected override void RunTool() { var tool = new JekyllCleanCommand(FileSystem, Environment, ProcessRunner, Tools, Log); tool.Clean(Settings); }