Skip to content

Commit

Permalink
fix: set inital answer for pick
Browse files Browse the repository at this point in the history
  • Loading branch information
0.618 committed Aug 7, 2024
1 parent c20f939 commit 7ecde5c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/amplify-cli/src/init-steps/preInitSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,16 @@ export const gen2Recommendation = async (context: $TSContext): Promise<$TSContex
process.exit(0);
}

const whyContinueWithGen1 = await prompter.pick('Why would you like to use Amplify Gen 1?', [
'I am a current Gen 1 user',
'Gen 2 is missing features I need from Gen 1',
'I find the Gen 1 CLI easier to use',
'Prefer not to answer',
]);
const whyContinueWithGen1 = await prompter.pick(
'Why would you like to use Amplify Gen 1?',
[
'I am a current Gen 1 user',
'Gen 2 is missing features I need from Gen 1',
'I find the Gen 1 CLI easier to use',
'Prefer not to answer',
],
{ initial: 3 },
);

context.exeInfo.projectConfig = {
whyContinueWithGen1,
Expand Down

0 comments on commit 7ecde5c

Please sign in to comment.