public static void JekyllDoctor(this ICakeContext context, JekyllDoctorSettings 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 JekyllDoctorCommand(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); command.Doctor(settings); }
protected override void RunTool() { var tool = new JekyllDoctorCommand(FileSystem, Environment, ProcessRunner, Tools, Log); tool.Doctor(Settings); }