Skip to content

Handle "license" and "license URL" as header fields #246

@ponsfrilus

Description

@ponsfrilus

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions