Skip to content

Add new specified db:seed feature with new --name option #963

@fzn0x

Description

@fzn0x

Description

Currently we must use --seed tag to specify the name of the file we want to seed, it's pain because we must copy the filename and paste it, it's extra pain if we do that in some code editor like Vim with less efficient configuration.

I want to submit new feature for this.

Simply the new feature and the expected result would be like :

> npx sequelize-cli db:seed --name user-wallet
> choose one of the following [UP and DOWN arrow keys navigation then press enter to start seed, or press space for multi-select]
> 1. 20210824024142-user-wallet.js
> 2. 20210824024143-user-wallet.js
> 3. 20210824024144-user-wallet.js

Pros

  1. No need to deprecate the --seed option.
  2. No need to copy paste seeder filename because it's such a pain
  3. Flexibel even with the same seeder name ( we depends on the time prefix to use around this command )
  4. Simpler usage

Cons

No cons found, maybe you can comment if there's any, i will edit the issue.

Tasks

  • Create --name option with the expected result
  • Create the unit test for --name option

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions