async function promptForParameters()

in cdk-stacks/configure.js [187:202]


async function promptForParameters() {
    console.log(`\nPlease provide your parameters:\n`)

    const rl = readline.createInterface({ input: process.stdin, output: process.stdout });

    for (const param of configParams.parameters) {
        if (!param.parent || (param.parent && isParentEnabled(param))) {
            const input = await buildQuestion(`${param.cliFormat} [${param.value}]`, rl)
            if (input.trim() !== '') {
                param.value = parseParam(input)
            }
        }
    }

    rl.close()
}