-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Labels
Description
Feature Request
Note: This feature request is related to wp-cli/i18n-command/pull/198.
When scaffolding a new plugin, all the header fields are not handled, more specifically it would be great to be able to specify the License and License URI fields:
License: The short name (slug) of the plugin’s license (e.g. GPL2). More information about licensing can be found in the WordPress.org guidelines.
License URI: A link to the full text of the license (e.g. https://www.gnu.org/licenses/gpl-2.0.html).
Describe the solution you'd like
Looking a the file scaffold-command/src/Scaffold_Command.php, I suggest to add two options as follow:
* [--plugin_license=<license>]
* : What to put in the 'License:' header, e.g. GPLv2
*
* [--plugin_license_uri=<url>]
* : What to put in the 'License URI:' header, e.g. https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*
Questions
- Would it be possible to set a default license ?
- Would that change also be needed by others scaffoldable elements, surch as underscodre, child or test themes, ...?
PS:
- Yes, I reviewed the contribution guidelines.
schlessera