Skip to content

How to pass options or use callbacks? #5

@zmorris

Description

@zmorris

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions