-
Notifications
You must be signed in to change notification settings - Fork 816
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add check for extra command line args provided with amplify delete #4576
feat: add check for extra command line args provided with amplify delete #4576
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4576 +/- ##
==========================================
+ Coverage 61.57% 61.69% +0.12%
==========================================
Files 333 332 -1
Lines 14550 14534 -16
Branches 2764 2929 +165
==========================================
+ Hits 8959 8967 +8
+ Misses 5164 5126 -38
- Partials 427 441 +14
Continue to review full report at Codecov.
|
@nchaloult We have a command to support our headless users |
I tested this locally with
|
Are there any other situations where |
Can you write a unit test that tests this change? |
d56cabd
to
7cdb9df
Compare
I wrote a first draft of a set of tests. I'm concerned about the fact that the |
7cdb9df
to
e3b46d0
Compare
Addressed the concerns with |
…ices (aws-amplify#4610)" This reverts commit 5bee574. Revert "feat: add check for extra command line args provided with amplify delete (aws-amplify#4576)" This reverts commit 82d1093. test(amplify-category-auth): fixed push test
…lify delete (aws-amplify#4576)" This reverts commit 82d1093.
* feat(amplify-provider-awscloudformation): add region ca-central-1 * fix test * Revert "Add region ca-central-1 (#4796)" This reverts commit c8b6bd8. * Revert "feat: add check for extra command line args provided with amplify delete (#4576)" This reverts commit 82d1093. * Revert "perf: fulfill promises to upload files to S3 concurrently (#4575)" This reverts commit 96d1914. * Revert "fix(cli): remove unnecessary stack trace log when adding services (#4610)" This reverts commit 5bee574. * Revert "fix test" This reverts commit 63c3c78. Co-authored-by: UnleashedMind <zhoweimi@186590ce137f.ant.amazon.com>
* feat(amplify-provider-awscloudformation): add region ca-central-1 * fix test * Revert "Add region ca-central-1 (aws-amplify#4796)" This reverts commit af29f35. * Revert "feat: add check for extra command line args provided with amplify delete (aws-amplify#4576)" This reverts commit 48b27b7. * Revert "perf: fulfill promises to upload files to S3 concurrently (aws-amplify#4575)" This reverts commit 9fbee8a. * Revert "fix(cli): remove unnecessary stack trace log when adding services (aws-amplify#4610)" This reverts commit 56efb32. * Revert "fix test" This reverts commit 50a8073fbbdb56931191912938fb50f542197832. Co-authored-by: UnleashedMind <zhoweimi@186590ce137f.ant.amazon.com>
* feat(amplify-provider-awscloudformation): add region ca-central-1 * fix test * Revert "Add region ca-central-1 (aws-amplify#4796)" This reverts commit af29f35. * Revert "feat: add check for extra command line args provided with amplify delete (aws-amplify#4576)" This reverts commit 48b27b7. * Revert "perf: fulfill promises to upload files to S3 concurrently (aws-amplify#4575)" This reverts commit 9fbee8a. * Revert "fix(cli): remove unnecessary stack trace log when adding services (aws-amplify#4610)" This reverts commit 56efb32. * Revert "fix test" This reverts commit 50a8073fbbdb56931191912938fb50f542197832. Co-authored-by: UnleashedMind <zhoweimi@186590ce137f.ant.amazon.com>
* feat(amplify-provider-awscloudformation): add region ca-central-1 * fix test * Revert "Add region ca-central-1 (aws-amplify#4796)" This reverts commit af29f35. * Revert "feat: add check for extra command line args provided with amplify delete (aws-amplify#4576)" This reverts commit 48b27b7. * Revert "perf: fulfill promises to upload files to S3 concurrently (aws-amplify#4575)" This reverts commit 9fbee8a. * Revert "fix(cli): remove unnecessary stack trace log when adding services (aws-amplify#4610)" This reverts commit 56efb32. * Revert "fix test" This reverts commit 50a8073fbbdb56931191912938fb50f542197832. Co-authored-by: UnleashedMind <zhoweimi@186590ce137f.ant.amazon.com>
This pull request has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Issue #, if available:
#4115
Description of changes:
Since
$ amplify delete
is a sensitive and dangerous command, there should be checks in place to ensure that users truly mean to execute it.$ amplify delete
may be confused with$ amplify remove <category>
. If$ amplify delete
is executed with any additional command line arguments, then an error message should be displayed indicating that thedelete
command does not accept any arguments, and a suggestion should be printed that asks the user if they meant to use theremove
command instead ofdelete
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.