Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
await download({
binaries: {
'query-engine': binaryPath,
'migration-engine': binaryPath,
'introspection-engine': binaryPath,
},
showProgress: true,
version,
failSilent: false,
})
}
return cmd.parse(args._.slice(1))
}
// unknown command
return unknownCommand(CLI.help, args._[0])
}
}
// check if we have that subcommand
const cmd = this.cmds[args._[0]]
if (cmd) {
const nextFreePort = await getNextFreePort(process.cwd())
if (typeof nextFreePort !== 'number') {
const command = `prisma2 lift ${argv.join(' ')}`
throw new Error(`Cannot run ${chalk.bold(command)} because there is a ${chalk.bold(
'prisma2 dev',
)} command running in this directory.
Please ${gamboge(`stop ${chalk.bold('prisma2 dev')} first`)}, then try ${chalk.greenBright.bold(command)} again`)
}
return cmd.parse(args._.slice(1))
}
return unknownCommand(LiftCommand.help, args._[0])
}