UNPKG

miteru

Version:
29 lines (19 loc) 1.13 kB
Usage: miteru [options] <files> Options: -e, --execute <command> Execute a command when a file event occurs. -i, --init Listen for file init events. -a, --add Listen for file add events. -c, --change Listen for file change events. -u, --unlink Listen for file unlink events. By default --add and --change events are listened to if no events are specified. --limit <milliseconds> Minimum allowed polling interval. -v, --verbose Verbose output. --stats Print detailed stats every 1 second. -V, --version Print miteru version and exit. -h, --help Print help ( this text ) and exit. Examples: miteru -e 'npm run build' "src/**/*.js" miteru -iacu -e 'echo $evt: $file' "src/**/*.js" miteru -e 'sshpass -p "giraffe" scp $file user@10.0.0.6:/home/user/app/$file' NOTE: using sshpass -p "password" will add your password to bash history -- use -f to load password from file.