Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return StandardError stream #4

Open
Grynn opened this issue Dec 9, 2012 · 1 comment
Open

Return StandardError stream #4

Grynn opened this issue Dec 9, 2012 · 1 comment

Comments

@Grynn
Copy link

Grynn commented Dec 9, 2012

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

@manojlds
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants