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

Add support for recursive directory search in drush config:import --partial --source=/some/dir #6090

Open
davearch opened this issue Aug 15, 2024 · 0 comments

Comments

@davearch
Copy link

Is your feature request related to a problem? Please describe.
I have a pretty big migration that I am working on and to make it more organized it would be nice to have subdirectories in my module with the migration config. For example:
./my_migration_module/
 |__ /config/
  |__ /install/
    |__ /distinct_migration_scenario/
      |__ migration_file.yml
      |__ migration_file2.yml
    |__ /distinct_migration_scenario2/
      |__ migration_file3.yml
    |__ migration_file4.yml
Currently if I try to run drush cim --partial --source=./my_migration_module/config/install
Only migration_file4 would be imported. But it would be nice to have all of them imported at once.

Describe the solution you'd like
I would like to define a single directory and have all the config files in it picked up recursively for import.

Describe alternatives you've considered
I could keep all the files in a single directory, but for organization it's becoming unwieldy. I could also use separate directories and just run the command with different directories each time. I could even put those all in a single drush command so it doesn't have to be redundant. So this is just a 'nice to have' feature.

Additional context
I am willing to work on this.

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

No branches or pull requests

2 participants