clibs/entr
À propos
Un utilitaire qui exécute des commandes arbitraires lorsque des fichiers changent. Il utilise kqueue(2) ou inotify(7) pour éviter l’interrogation périodique. entr réagit aux événements du système de fichiers en exécutant les commandes transmises en arguments de ligne de commande ou en écrivant dans un FIFO. Il a été conçu pour que le retour rapide et les tests automatisés deviennent naturels et courants.
Outils de développementProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- Historique en cours
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalWARNING: This is a (possibly outdated and/or unmaintained) fork of https://github.com/eradman/entr . If you want to install entr, go to the the original repository to get the latest release. Likewise, to file an issue or a pull request, head over to the the original repository.
Event Notify Test Runner
A utility for running arbitrary commands when files change. Uses kqueue(2) or
inotify(7) to avoid polling. entr was written to facilitate rapid feedback
on the command line.
Source Installation - BSD, Mac OS, and Linux
./configure
make test
make install
To see available build options run ./configure -h
Docker and WSL
Incomplete inotify support on Windows Subsystem for Linux and Docker for Mac
may cause entr to respond incorrectly. Setting the environment variable
ENTR_INOTIFY_WORKAROUND enables entr to operate in these environments.
Linux Features
Symlinks can be monitored for changes by setting the environment variable
ENTR_INOTIFY_SYMLINK.
Man Page Examples
Rebuild a project if source files change, limiting output to the first 20 lines:
$ find src/ | entr -s 'make | head -n 20'
Launch and auto-reload a node.js server:
$ ls *.js | entr -r node app.js
Clear the screen and run a query after the SQL script is updated:
$ echo my.sql | entr -cp psql -f /_
Rebuild project if a source file is modified or added to the src/ directory:
$ while sleep 0.1; do ls src/*.rb | entr -d make; done
Auto-reload a web server, or terminate if the server exits
$ ls * | entr -rz ./httpd
News
A release history as well as features in the upcoming release are covered in the NEWS file.
Explorer des projets similaires
Chargement…