App::watchdo - Run a command when watched files change
This documentation refers to App::watchdo version 0.1.1
watch-do [option] watch-do -w file1 [-w file2 ...] [--] cmd OPTIONS: cmd Command to run when file changes -w --watch[=]file File to be watched for changes -g --git Use git to find what to watch (ie monitor files that git see have changed) -v --verbose Show more detailed option --version Prints the version information --help Prints this help information --man Prints the full documentation for watch-do
doit ()
Runs the requested command when a file has changed
get_dirs ()
Gets the unique list of directories to look in
get_files ()
Gets all the files to be watched
watch ()
Runs the event loop to watch for changes in files.
changed
Array of changed files
done
Stores callback method for alerting of changed files
dirs
Stores the directories that are being monitored
files
Stores the files that are being monitored
exclude
Stores a list of regexps of files that should not trigger changed events
git
Flag for using git to find files that should be monitored
run
The function to be called when file are changed
wait
Time to wait for changes to settle to changed events are not filed too quickly
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
Ivan Wills - (ivan.wills@gmail.com)
Copyright (c) 2014-2016 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install App::watchdo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::watchdo
CPAN shell
perl -MCPAN -e shell install App::watchdo
For more information on module installation, please visit the detailed CPAN module installation guide.