Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onConfigOpen: async ({ context }) => {
const tasks = require('@vue/cli-ui/apollo-server/connectors/tasks')
return {
prompts: [
{
name: 'task',
type: 'list',
message: 'org.vue.widgets.run-task.prompts.task',
choices: (await tasks.list(undefined, context)).map(task => ({
name: task.name,
value: task.id
}))
}
]
}
}
})