Skip to content
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

Conversation

Bentheburrito
Copy link
Contributor

Description of changes

Commands in the 'core' plugin that contain sub-commands (env and plugin) now support verb / noun
swapping (i.e. env add and add 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
  • check that things like api add and add api still work
  • etc.

yarn test
yarn lint

Checklist

  • PR description included
  • yarn test passes

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

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
@Bentheburrito Bentheburrito requested a review from a team as a code owner July 6, 2021 22:31
packages/amplify-cli/src/input-manager.ts Outdated Show resolved Hide resolved
packages/amplify-cli/src/input-manager.ts Outdated Show resolved Hide resolved
…Property()

Changed validation checks per requests in PR aws-amplify#7675
@codecov-commenter
Copy link

Codecov Report

Merging #7675 (6aee20d) into master (00d6676) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 00d6676...6aee20d. Read the comment docs.

@cjihrig cjihrig self-assigned this Jul 16, 2021
Copy link
Contributor

@cjihrig cjihrig left a 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

@cjihrig cjihrig merged commit 4319875 into aws-amplify:master Aug 25, 2021
jhockett pushed a commit that referenced this pull request Aug 25, 2021
* 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
@github-actions
Copy link

github-actions bot commented Sep 2, 2021

👋 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.

@github-actions github-actions bot added the referenced-in-release Issues referenced in a published release changelog label Sep 2, 2021
marcvberg pushed a commit to marcvberg/amplify-cli that referenced this pull request Oct 13, 2021
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
referenced-in-release Issues referenced in a published release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support amplify verb noun and amplify noun verb consistently.
3 participants