Skip to content

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

Merged
jasonvarga merged 6 commits intostatamic:5.xfrom
kevinmeijer97:patch-5
Feb 5, 2025
Merged

[5.x] Select specific repositories for Eloquent Driver install command#11381
jasonvarga merged 6 commits intostatamic:5.xfrom
kevinmeijer97:patch-5

Conversation

@kevinmeijer97
Copy link
Contributor

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.

@kevinmeijer97
Copy link
Contributor Author

Awesome, thanks! 🚀

@jasonvarga jasonvarga merged commit 053a48d into statamic:5.x Feb 5, 2025
18 checks passed
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.

3 participants