public static void JekyllNewTheme(this ICakeContext context, string name, JekyllNewThemeSettings settings) { if (context is null) { throw new ArgumentNullException(nameof(context)); } if (string.IsNullOrWhiteSpace(name)) { throw new ArgumentException("Value cannot be null or whitespace.", nameof(name)); } if (settings is null) { throw new ArgumentNullException(nameof(settings)); } AddinInformation.LogVersionInformation(context.Log); settings.Name = name; var command = new JekyllNewThemeCommand(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); command.NewTheme(settings); }
protected override void RunTool() { var tool = new JekyllNewThemeCommand(FileSystem, Environment, ProcessRunner, Tools, Log); tool.NewTheme(Settings); }