You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
* [--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, ...?
However, an added complexity is that for some licenses, the actual license needs to be included as a LICENSE file into the scaffolded package.
Do you have a particular license in mind ? It looks very difficult to be able to handle all the license and theirs different versions... I would rely on the fact that the user knows what he's doing when choosing a license...
As for the questions:
Would it be possible to set a default license ?
I think we should go with the WordPress license as a default.
I agree, GPLv2.
Would that change also be needed by others scaffoldable elements, surch as underscodre, child or test themes, ...?
Yes, if we add the possibility to directly manage the license, we should do so for all subcommands that include a license (reference) in some form.
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:
Describe the solution you'd like
Looking a the file scaffold-command/src/Scaffold_Command.php, I suggest to add two options as follow:
Questions
PS:
The text was updated successfully, but these errors were encountered: