lukeed / taskr

A fast, concurrency-focused task automation tool.
MIT License
2.53k stars 74 forks source link

Pass full <File> object to filters' options #172

Closed lukeed closed 8 years ago

lukeed commented 8 years ago

Previously, only the base property of this object was passed into filters, accessible as options.filename. This allowed for files' names to be altered while writing.

Now, the entire <File> object is passed into filters, allowing any of the file properties to be read and/or changed. The object is nested under the file key.

Warning: Some plugins may have used the filename key in the past. This is now read by calling options.file.base instead of options.filename

Closes #171 since it achieves the same goal by more reusable means.