def task(name, deps = None, fn = None):
if callable(deps):<EOL><INDENT>fn = deps<EOL>deps = None<EOL><DEDENT>if not deps and not fn:<EOL><INDENT>logger.log(logger.red("<STR_LIT>" % name))<EOL><DEDENT>else:<EOL><INDENT>tasks[name] = [fn, deps]<EOL><DEDENT>
Define a new task.