Skip to content

Commit

Permalink
Added sub-heads
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed May 22, 2012
1 parent a6e1ba9 commit 3975532
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Expand Up @@ -510,9 +510,13 @@ This would remove the 'pkg' directory, and all its contents.
### Running shell-commands: `jake.exec` and `jake.createExec`

Jake also provides a more general utility function for running a sequence of
shell-commands. The `jake.exec` command takes an array of shell-command strings,
and a final callback to run after completing them. Here's an example from Jake's
Jakefile, that runs the tests:
shell-commands.

#### `jake.exec`

The `jake.exec` command takes an array of shell-command strings, and a final
callback to run after completing them. Here's an example from Jake's Jakefile,
that runs the tests:

```javascript
desc('Runs the Jake tests.');
Expand All @@ -539,6 +543,8 @@ It also takes an optional options-object, with the following options:

This command doesn't pipe input between commands -- it's for simple execution.

#### `jake.createExec` and the evented Exec object

Jake also provides an evented interface for doing shell commands. Calling
`jake.createExec` returns an instance of `jake.Exec`, which is an `EventEmitter`
that fires events as it executes commands.
Expand Down

0 comments on commit 3975532

Please sign in to comment.