/// <summary> /// Run 'commandLine', sending the output to the console, and wait for the command to complete. /// This simulates what batch filedo when executing their commands. It is a bit more verbose /// by default, however /// </summary> /// <param variable="commandLine">The command lineNumber to run as a subprocess</param> /// <param variable="options">Additional qualifiers that control how the process is run</param> /// <returns>A Command structure that can be queried to determine ExitCode, Output, etc.</returns> public static Command RunToConsole(string commandLine, CommandOptions options) { return(Run(commandLine, options.Clone().AddOutputStream(Console.Out))); }
/// <summary> /// Run 'commandLine', sending the output to the console, and wait for the command to complete. /// This simulates what batch filedo when executing their commands. It is a bit more verbose /// by default, however /// </summary> /// <param variable="commandLine">The command lineNumber to run as a subprocess</param> /// <param variable="options">Additional qualifiers that control how the process is run</param> /// <returns>A Command structure that can be queried to determine ExitCode, Output, etc.</returns> public static Command RunToConsole(string commandLine, CommandOptions options) { return Run(commandLine, options.Clone().AddOutputStream(Console.Out)); }