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

[5.x] Select specific repositories for Eloquent Driver install command #11381

Open
wants to merge 6 commits into
base: 5.x
Choose a base branch
from

Conversation

kevinmeijer97
Copy link

Adds --repositories option to statamic:install:eloquent-driver command, allowing targeted repository migration via comma-separated list.

Key improvements:

  • Supports selective repository migration without manual selection
  • Validates and normalizes repository names
  • Provides warning for invalid repository inputs
  • Maintains existing multiselect and --all functionality

Example usage:

php artisan statamic:install:eloquent-driver --repositories=assets,entries,forms

@kevinmeijer97 kevinmeijer97 changed the title Select specific repositories for Eloquent Driver install command [5.x] Select specific repositories for Eloquent Driver install command Jan 23, 2025
@duncanmcclean duncanmcclean self-requested a review January 23, 2025 12:52
Copy link
Member

@duncanmcclean duncanmcclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this PR!

I've made a couple of changes:

  • The command will now error out when one of the specified repositories is invalid.
  • The command will show a warning when one of the specified repositories is already driven by the Eloquent Driver.
  • I've also done a little bit of refactoring to separate the list of "all repos" from the list of "available" repos.

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