File tree Expand file tree Collapse file tree 1 file changed +22
-22
lines changed
Expand file tree Collapse file tree 1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -75,29 +75,29 @@ export async function getConfigFromWizard({
7575
7676 if ( cdkAnswers . context && cdkAnswers . context . trim ( ) !== '' ) {
7777 answers . context = [ cdkAnswers . context . trim ( ) ] ;
78- }
79-
80- // more context
81- while ( true ) {
82- const moreContextAnswers = await inquirer . prompt ( [
83- {
84- type : 'input' ,
85- name : 'context' ,
86- message : 'Would you like to enter more CDK context?' ,
87- default : oldContext . length > 0 ? oldContext . shift ( ) : undefined ,
88- } ,
89- ] ) ;
9078
91- if (
92- moreContextAnswers . context &&
93- moreContextAnswers . context . trim ( ) !== ''
94- ) {
95- answers . context = [
96- ...( answers . context ?? [ ] ) ,
97- moreContextAnswers . context . trim ( ) ,
98- ] ;
99- } else {
100- break ;
79+ // more context
80+ while ( true ) {
81+ const moreContextAnswers = await inquirer . prompt ( [
82+ {
83+ type : 'input' ,
84+ name : 'context' ,
85+ message : 'Would you like to enter more CDK context?' ,
86+ default : oldContext . length > 0 ? oldContext . shift ( ) : undefined ,
87+ } ,
88+ ] ) ;
89+
90+ if (
91+ moreContextAnswers . context &&
92+ moreContextAnswers . context . trim ( ) !== ''
93+ ) {
94+ answers . context = [
95+ ...( answers . context ?? [ ] ) ,
96+ moreContextAnswers . context . trim ( ) ,
97+ ] ;
98+ } else {
99+ break ;
100+ }
101101 }
102102 }
103103 }
You can’t perform that action at this time.
0 commit comments