No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests/src
.coveralls.yml
.gitignore
.travis.yml
README.md
Taskfile
composer.json
phpunit.xml

README.md

task/watch

Build Status Coverage Status

Example

use Task\Plugin\WatchPlugin;

$project->inject(function ($container) {
    $container['watch'] = new WatchPlugin;
});

$project->addTask('watch', ['watch', function ($watch) {
    $watch->init('/tmp')
        ->addListener('modify', function ($event) {
            # Do something
        });
}]);

Installation

Add to composer.json:

...
"require-dev": {
    "task/watch": "~0.1"
}
...

Usage

See the documentation for mbfisher/watch for documentation on using the watchers.