Permalink
Browse files

Added sub-heads

  • Loading branch information...
1 parent a6e1ba9 commit 3975532f63f5e25e807563d07cda3547feb2a11f mde committed May 22, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 README.md
View
@@ -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.');
@@ -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.

0 comments on commit 3975532

Please sign in to comment.