-
Notifications
You must be signed in to change notification settings - Fork 87
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 --github flag to scaffold plugin from a repository #158
Comments
I would love to have something like that available! I think that the use cases for scaffolding have by now outgrown the way this is technically handled, and it needs an overhaul to open it up to more flexible usage. Refactoring the scaffolding system (in a backward compatible fashion, of course) would be a good overarching target for v2.1. I'll open a new umbrella issue in that regard. |
@schlessera do you already have an architecture in mind for a refactored scaffolding system? |
Not yet, I haven't spent much time on it, given I'm focusing on the package restructuring for v2. However, here are some basic goals I'd like to achieve:
|
I'd like this to be closer to the project-based generation tools like Laravel's |
I am willing to contribute the feature which will scaffold a plugin based on a custom template. I suggest that the flag, which specifies the custom template, should be named either I will create a PR once the issue is assigned to me. |
Issue
Currently when using
wp scaffold plugin
you are limited to the provided plugin architecture. This is not ideal where you might have your own architecture you would like to use. In most cases this can be solved with other scripts, but it takes you outside of the convenience ofwp-cli
.Proposal
Add a new
--github
flag which will allowwp scaffold plugin
to checkout a source that will be used for scaffolding.Example usage:
Considerations
exec()
vs PHP git librarylog_whether_files_written
The text was updated successfully, but these errors were encountered: