mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-18 16:03:37 +00:00
Merge pull request #289 from vise890/master
update `exec` docs to match implemented behaviour
This commit is contained in:
commit
439a0b0aaa
@ -475,7 +475,8 @@ Object containing environment variables (both getter and setter). Shortcut to pr
|
||||
### exec(command [, options] [, callback])
|
||||
Available options (all `false` by default):
|
||||
|
||||
+ `async`: Asynchronous execution. Defaults to true if a callback is provided.
|
||||
+ `async`: Asynchronous execution. If a callback is provided, it will be set to
|
||||
`true`, regardless of the passed value.
|
||||
+ `silent`: Do not echo program output to console.
|
||||
|
||||
Examples:
|
||||
|
||||
@ -182,7 +182,8 @@ function execAsync(cmd, opts, callback) {
|
||||
//@ ### exec(command [, options] [, callback])
|
||||
//@ Available options (all `false` by default):
|
||||
//@
|
||||
//@ + `async`: Asynchronous execution. Defaults to true if a callback is provided.
|
||||
//@ + `async`: Asynchronous execution. If a callback is provided, it will be set to
|
||||
//@ `true`, regardless of the passed value.
|
||||
//@ + `silent`: Do not echo program output to console.
|
||||
//@
|
||||
//@ Examples:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user