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

BAC-36 | add seed:run cli command #96

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

BAC-36 | add seed:run cli command #96

wants to merge 1 commit into from

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.

None yet

1 participant