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

How to pass options or use callbacks? #5

Open
zmorris opened this issue Oct 5, 2017 · 1 comment
Open

How to pass options or use callbacks? #5

zmorris opened this issue Oct 5, 2017 · 1 comment

Comments

@zmorris
Copy link

zmorris commented Oct 5, 2017

shelljs-exec-proxy is awesome but I can't get this to work:

shell.curl('google.com', {silent:true});

or:

shell.curl('google.com', function(code, stdout, stderr) {
  console.log('Exit code:', code);
  console.log('Program output:', stdout);
  console.log('Program stderr:', stderr);
});

Are these possible, and if so, can you update the documentation with examples of how to call them? Thanx!

@nfischer
Copy link
Owner

nfischer commented Oct 6, 2017

I don't think I ever provided support for these, but these are great feature requests.


shell.curl('google.com', {silent:true});

You can get the same behavior with shell.config.silent = true. If you need other options, then you're out of luck for now.

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