shelljs-exec-proxy icon indicating copy to clipboard operation
shelljs-exec-proxy copied to clipboard

How to pass options or use callbacks?

Open zmorris opened this issue 7 years ago • 1 comments

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!

zmorris avatar Oct 05 '17 21:10 zmorris

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.

nfischer avatar Oct 06 '17 00:10 nfischer