amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

feat: add init prompts for Gen2

Open 0618 opened this issue 1 year ago • 1 comments

Description of changes

This PR is to add some prompts before a user init a new Gen1 project.

  • If user decide to not continue with Gen1, exit the process. Screenshot 2024-07-10 at 16 21 28

  • If user decide to continue with Gen1, ask for the reason

Screenshot 2024-07-10 at 16 22 32

  • Add the reason to project-config.json Screenshot 2024-07-09 at 17 53 18

  • Add to stack metadata

Screenshot 2024-07-10 at 16 31 26

  • Only show the prompts in a new project.
  • The change doesn't affect headless mode.

Issue #, if available

Description of how you validated changes

  • tested all the scenarios above on my local machine.

Checklist

  • [x] PR description included
  • [x] yarn test passes
  • [ ] Tests are changed or added
  • [ ] Relevant documentation is changed or added (and PR referenced)
  • [ ] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies
  • [ ] Pull request labels are added

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

0618 avatar Jul 10 '24 01:07 0618

can you run e2e?

awsluja avatar Jul 15 '24 19:07 awsluja