private static void Npx(this ICakeContext context, NpxSettings npxSettings) { var npxTool = new NpxTool( context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); npxTool.Execute(npxSettings); }
public static void Npx( this ICakeContext context, string command, ProcessArgumentBuilder arguments, Action <NpxSettings> configureSettings) { var npxSettings = new NpxSettings(command, arguments); configureSettings?.Invoke(npxSettings); context.Npx(npxSettings); }
public static void Npx( this ICakeContext context, string command, ProcessArgumentBuilder arguments, Action <NpxSettings> configureSettings, out string[] redirectedStandardOutput) { var npxSettings = new NpxSettings(command, arguments); configureSettings?.Invoke(npxSettings); context.Npx(npxSettings, out redirectedStandardOutput); }
private static void Npx( this ICakeContext context, NpxSettings npxSettings, out string[] redirectedStandardOutput) { var npxTool = new NpxTool( context.FileSystem, context.Environment, context.ProcessRunner, context.Tools, context.Log); npxTool.Execute(npxSettings, out redirectedStandardOutput); }