Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const task = function(input, opts) {
try {
validateInput(input)
const optsA = parseOpts({ opts })
const gulpTask = execCommand.bind(null, input, optsA)
// Log the command and arguments as the task name.
// This does not work when this is the top-level task.
renameFn(gulpTask, input)
return gulpTask
} catch (error) {
handleTask(error)
}
}