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

remove `yargs` from create-amplify

Open 0618 opened this issue 1 year ago • 1 comments

Environment information

n/a

Description

We started using yargs in create-amplify since https://github.com/aws-amplify/amplify-backend/pull/960, but it's only used in one place, which might not be necessary.

We should try removing it.

edit:

The solution needs to be discussed.

Option 1 (@sobolk ): refactor to move yargs to top level script

Option 2 (@edwardfoyle ): move all of create-amplify into an amplify setup subcommand and then create-amplfiy is essentially just an alias for npm install @aws-amplify/backend-cli && npx amplify setup . That way all of our arg parsing logic is consolidated into @aws-amplify/backend-cli

0618 avatar Feb 01 '24 19:02 0618

👎 we'll loose help output if we do.

sobolk avatar Feb 01 '24 19:02 sobolk