Skip to content

Commit

Permalink
Edited README.md via GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
craigspaeth committed Sep 23, 2011
1 parent f509cff commit a6646df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -33,13 +33,13 @@ Sentry comes with two methods `watch` and `watchRegExp`.

### sentry.watch(filePath, [task], callback)

Optionally you may pass a task which will send `(err, stdout, stderr)` as the arguments to the callback
When running a child process you may optionally pass a callback with the arguments `(err, stdout, stderr)`

````coffeescript
sentry.watch 'file.js', 'coffee -c', (err, stdout, stderr) ->
````

Or simply just a callback and Sentry will pass the filename to the callback
Or just pass a callback and Sentry will pass the filename to the callback

````coffeescript
sentry.watch 'file.js', (filename) ->
Expand Down Expand Up @@ -71,7 +71,7 @@ Just like sentry.watch but instead you must pass a root directory and regular ex
# Find all files in this folder that end in .coffee
sentry.watchRegExp '', /\.coffee$/, ->

# Find all files in the adjacent 'test' folder that begin with test and end in .coffee
# Find all files in the adjacent 'test' folder that begin with `test_` and end in `.coffee`
sentry.watchRegExp '../tests/', /^test_,.coffee$/, ->
````

Expand Down

0 comments on commit a6646df

Please sign in to comment.