App-watchdo
view release on metacpan or search on metacpan
bin/watch-do view on Meta::CPAN
system @cmd;
}
}
}
__DATA__
=head1 NAME
watch-do - Run a command when watched files change
=head1 VERSION
This documentation refers to watch-do version 0.1.1
=head1 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
=head1 DESCRIPTION
C<watch-do> watches for file changes and runs a supplied command or prints
those files that have changed.
=head1 SUBROUTINES/METHODS
=head1 DIAGNOSTICS
=head1 CONFIGURATION AND ENVIRONMENT
=head1 DEPENDENCIES
=head1 INCOMPATIBILITIES
=head1 BUGS AND LIMITATIONS
There are no known bugs in this module.
Please report problems to Ivan Wills (ivan.wills@gmail.com).
Patches are welcome.
=head1 AUTHOR
Ivan Wills - (ivan.wills@gmail.com)
=head1 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 L<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.
=cut
( run in 0.789 second using v1.01-cache-2.11-cpan-5a3173703d6 )