NAME
App::watchdo - Run a command when watched files change
VERSION
This documentation refers to App::watchdo version 0.1.1
SYNOPSIS
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
DESCRIPTION
SUBROUTINES/METHODS
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.
ATTRIBUTES
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
DIAGNOSTICS
CONFIGURATION AND ENVIRONMENT
DEPENDENCIES
INCOMPATIBILITIES
BUGS AND LIMITATIONS
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
AUTHOR
Ivan Wills - (ivan.wills@gmail.com)
LICENSE AND COPYRIGHT
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.