cmd icon indicating copy to clipboard operation
cmd copied to clipboard

Return StandardError stream

Open Grynn opened this issue 13 years ago • 1 comments

Sometimes it is useful to have the error stream instead of stdout (esp. if the errorlevel != 0)

For example:

var x = cmd.git.describe(); //could return empty string, though console would show 'fatal: No names found, cannot describe anything.'

Not sure of a good interface for this ... perhaps something like this

var x = cmd.git.describe();

//where x is an object which has the following properties? x.ErrorLevel : int x.StdOut : string x.StdErr : string

Grynn avatar Dec 09 '12 20:12 Grynn

Yes, this is coming up. Thanks for the input :)

manojlds avatar Dec 10 '12 19:12 manojlds