public static void NpmRunScript(this ICakeContext context, NpmRunScriptSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (settings == null) { throw new ArgumentNullException(nameof(settings)); } AddinInformation.LogVersionInformation(context.Log); var packer = new NpmScriptRunner(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); packer.RunScript(settings); }
protected override void RunTool() { var tool = new NpmScriptRunner(FileSystem, Environment, ProcessRunner, Tools, Log); tool.RunScript(Settings); }