NAME
watch-do - Run a command when watched files change
VERSION
This documentation refers to watch-do version 0.1.1
SYNOPSIS
watch-do -w file1 [-w file2 ...] [(-e|--exclude) regexp] [-f|--first] [(-s|--sleep) seconds] [--] [cmd]
watch-do (-g|--git) [(-e|--exclude) regexp] [-f|--first] [(-s|--sleep) seconds] [--] [cmd]
watch-do --help
watch-do --man
watch-do --version
OPTIONS:
cmd Command to run when watched file(s) change. If not
supplied this will just show the changed files.
-w --watch[=]file File or Directory to be watched for changes
-g --git Use git to find what to watch (i.e. monitor git status to
see files have changed and add them to the watch)
-e --exclude[=]regexp
Exclude changes in files that match is regeular expression
You can specify multiple times for more regexps.
-f --first Execute the cmd on the first run as well as when files
change.
-s --sleep[=]int Time in seconds to sleep between checking for changes
(Default 1s)
-t --test Only test that the script would be executed on file
changes, will warn with the execution of the command.
--no-test Turn off testing (Default)
-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
watch-do
watches for file changes and runs a supplied command or prints those files that have changed.
SUBROUTINES/METHODS
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 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.