Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tasks.deployApi
], listrOpts)
const buildList = new Listr([
tasks.parseOptions,
tasks.packageApp,
tasks.saveApp
], listrOpts)
const environmentList = new Listr([
tasks.parseOptions,
tasks.getCurrentEnvironment
], listrOpts)
if (!awsHasRegion()) {
throw new UserError(awsHasRegion.errorText)
}
if (args.create) {
await createList.run({ args, isVerbose })
}
if (args.update) {
await updateList.run({ args, isVerbose })
}
if (args.build) {
args['--output'] = args['--output'] || 'scandium-app.zip'
await buildList.run({ args, isVerbose })
}
if (args.environment && args.show) {