amad / watcher
此包已废弃,不再维护。未建议替代包。
文件更改时运行任意命令。watch-and-runner
1.0.1
2016-11-16 10:18 UTC
Requires
- php: >=5.5.9
- symfony/console: 2.8.*|3.*
- symfony/finder: 2.8.*|3.*
- symfony/process: 2.8.*|3.*
Requires (Dev)
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2021-03-05 23:50:05 UTC
README
Watcher 是一个简单的工具,可以在文件更改时运行您的任意命令。
$ watcher <command> <file> (<file>)...
安装
$ composer global require amad/watcher
示例用法
$ watcher phpunit ./
$ watcher 'clear && phpunit -c phpunit.xml' src/ tests/
$ watcher 'docker run unitests' src/ tests/
$ watcher 'docker exec project-container behat' src/ tests/features/