johnae / spook

Lightweight programmable evented utility based on LuaJIT and ljsyscall
Other
35 stars 0 forks source link

File placeholders in commands #10

Closed johnae closed 8 years ago

johnae commented 8 years ago

Would be very convenient in certain cases. Example:

cmd = command "cat [file] | gzip -c > [file].gz"
on_changed "stuff/to/gzip/(.*)%.txt", (a) -> cmd "stuff/to/gzip/#{a}.txt"
johnae commented 8 years ago

Done as of SHA: 9486d8193c555553ecb1d30eb9f541c54a25b118 (released in 0.4.0).