-
Notifications
You must be signed in to change notification settings - Fork 825
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(cli): add consistent support for verb / noun swapping #7675
feat(cli): add consistent support for verb / noun swapping #7675
Conversation
commands in the 'core' plugin that contain sub-commands (env and plugin) now support verb / noun swapping (`env add` and `add env` now both work) close aws-amplify#7630
…Property() Changed validation checks per requests in PR aws-amplify#7675
Codecov Report
@@ Coverage Diff @@
## master #7675 +/- ##
=======================================
Coverage 51.79% 51.79%
=======================================
Files 547 547
Lines 27626 27626
Branches 5342 5342
=======================================
Hits 14308 14308
Misses 12326 12326
Partials 992 992 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pulled this down and did some manual testing. Seems to work correctly. LGTM
* feat(cli): add consistent support for verb / noun swapping commands in the 'core' plugin that contain sub-commands (env and plugin) now support verb / noun swapping (`env add` and `add env` now both work) close #7630 * refactor(cli): improve validation checks - Array.isArray() and hasOwnProperty() Changed validation checks per requests in PR #7675
👋 Hi, this pull request was referenced in the v5.4.0 release! Check out the release notes here https://github.com/aws-amplify/amplify-cli/releases/tag/v5.4.0. |
…fy#7675) * feat(cli): add consistent support for verb / noun swapping commands in the 'core' plugin that contain sub-commands (env and plugin) now support verb / noun swapping (`env add` and `add env` now both work) close aws-amplify#7630 * refactor(cli): improve validation checks - Array.isArray() and hasOwnProperty() Changed validation checks per requests in PR aws-amplify#7675
Description of changes
Commands in the 'core' plugin that contain sub-commands (env and plugin) now support verb / noun
swapping (i.e.
env add
andadd env
now both work).Issue #, if available
close #7630
Description of how you validated changes
Manually tested in sample Amplify project using
amplify-dev
:amplify-dev add env
amplify-dev remove plugin
api add
andadd api
still workyarn test
yarn lint
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.