Skip to content

Conversation

@sushanpth
Copy link

@sushanpth sushanpth commented Jan 11, 2024

What the PR contains:

  • add seed:run cli command
  • Disable seeds from running on every start

This PR adds new seed:run cli command:
Example Usage: go run main.go seed:run -n TestSeed -n AdminSeed

Command Help:

/clean_web # go run  main.go seed:run -h
run seed command

Usage:
  clean-architecture seed:run [flags]

Flags:
      --all                run all seeds
  -h, --help               help for seed:run
  -n, --name stringArray   name of the seed to run (can be used multiple times)

Every seed now need to have Name() method which should return the name of the seed.

Testing

Steps to test the changes made in this pull request, including any test cases that were added or modified.

  • Tested all new/updated features locally

@sushanpth
Copy link
Author

  • Need to confirm how to integrate the seed command in CI/CD pipeline

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants