mirror of
https://github.com/samsonjs/NorthWatcher.git
synced 2026-04-01 10:35:51 +00:00
Compare commits
No commits in common. "master" and "v0.1.9" have entirely different histories.
2 changed files with 6 additions and 8 deletions
|
|
@ -54,10 +54,10 @@ function main() {
|
||||||
|
|
||||||
// <trigger> <dir> <command>
|
// <trigger> <dir> <command>
|
||||||
var m
|
var m
|
||||||
if (m = line.match(/^([-+]{0,2})\s*(?:"([^"]+)"|(\S+))\s+(.+)$/i)) {
|
if (m = line.match(/^([-+]{0,2})\s*(\S+)\s+(.+)$/i)) {
|
||||||
var trigger = m[1] || '+-' // default watches for both
|
var trigger = m[1] || '+-' // default watches for both
|
||||||
, dir = m[2] || m[3]
|
, dir = m[2]
|
||||||
, command = m[4]
|
, command = m[3]
|
||||||
, options = { create: trigger.indexOf('+') !== -1
|
, options = { create: trigger.indexOf('+') !== -1
|
||||||
, remove: trigger.indexOf('-') !== -1
|
, remove: trigger.indexOf('-') !== -1
|
||||||
, command: command
|
, command: command
|
||||||
|
|
@ -181,9 +181,7 @@ function spiel() {
|
||||||
, " - todo update-remote-todo-list.sh"
|
, " - todo update-remote-todo-list.sh"
|
||||||
, ""
|
, ""
|
||||||
, "So each line has an optional trigger followed by a directory and"
|
, "So each line has an optional trigger followed by a directory and"
|
||||||
, "then a command. The directory can be quoted if it contains spaces."
|
, "then a command. The triggers are:"
|
||||||
, ""
|
|
||||||
, "The triggers are:"
|
|
||||||
, ""
|
, ""
|
||||||
, " + files are created"
|
, " + files are created"
|
||||||
, " - files are removed"
|
, " - files are removed"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "northwatcher",
|
"name": "northwatcher",
|
||||||
"description": "NorthWatcher is cron for filesystem changes.",
|
"description": "NorthWatcher is cron for filesystem changes.",
|
||||||
"version": "0.2.0",
|
"version": "0.1.9",
|
||||||
"homepage": "http://samhuri.net/proj/NorthWatcher",
|
"homepage": "http://samhuri.net/proj/NorthWatcher",
|
||||||
"author": "Sami Samhuri <sami@samhuri.net>",
|
"author": "Sami Samhuri <sami@samhuri.net>",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
@ -30,4 +30,4 @@
|
||||||
"optimist": "0.2.x"
|
"optimist": "0.2.x"
|
||||||
},
|
},
|
||||||
"devDependencies": {}
|
"devDependencies": {}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue