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); }
public static void JekyllNew(this ICakeContext context, DirectoryPath path, JekyllNewSettings settings) { if (context is null) { throw new ArgumentNullException(nameof(context)); } if (path is null) { throw new ArgumentNullException(nameof(path)); } if (settings is null) { throw new ArgumentNullException(nameof(settings)); } AddinInformation.LogVersionInformation(context.Log); settings.Path = path; var command = new JekyllNewCommand(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); command.New(settings); }
public static void JekyllServe(this ICakeContext context, JekyllServeSettings 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 JekyllServeCommand(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); command.Serve(settings); }