shelljs-exec-proxy
shelljs-exec-proxy copied to clipboard
How to pass options or use callbacks?
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!
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.