Make tasks configurable
davestewart opened this issue · comments
Background
Right now tasks are not configurable, but more importantly, aren't configurable from the command line.
Some examples of configuring tasks might be:
--colorize replace all strokes and fills
--colorize=auto only replace if < two colors
--outline outline paths
--outline=path text outline paths and text
Proposal
Allow options to be passed from the command line and task functions to accept options.
Command line
Use Yargs to parse options from the command line, into javascript and pass to functions:
Tasks
Task signature should be:
function (svg: string, options?: any, log?: object) {
}