Skip to content
Permalink
Browse files

Merge remote-tracking branch 'upstream/master'

  • Loading branch information...
enzo - Eduardo Garcia
enzo - Eduardo Garcia committed Apr 24, 2019
2 parents e8f8c39 + bb6312e commit ace8d02781b02565bdbeb3bc4b6cc51a939a626b
@@ -29,7 +29,7 @@ messages:
files:
generated: 'Generated or updated files'
copied: 'Copied files'
lines-code: 'Generated lines: "%s"'
lines-code: 'Generated lines: %s'
path: 'Generation path'
learning:
route: "In order to to create pages it is necessary to define routes for them.\nA route maps a URL path to a controller. It defines what function\nor method will be called when a URL is accessed.\nIf the user accesses http://drupal8.dev/{{ route.path }}, the routing\nsystem will look for a route with that path. In this case it will find a\nmatch, and execute the _controller callback. In this case the callback is\ndefined as a classname\n(\"\\Drupal\\{{ module }}\\Controller\\{{ class_name }}\")\nand a method (\"{{ route.method }}\")."
@@ -3,7 +3,10 @@ arguments:
content-type: 'Content Type to be exported'
questions:
content-type: 'Content Type to be exported'
remove-uuid: 'Content Type to be exported without uuid key.'
optional-config: 'Export content type in module as an optional configuration'
all: 'All content types'
remove-config-hash: 'Content type to be exported without the default site hash key.'
messages:
content-type-exported: 'Exporting content type'
options:
@@ -19,5 +22,4 @@ examples:
execution: |
drupal config:export:content:type page \
--module="demo" \
--optional-config
--optional-config
@@ -1,7 +1,8 @@
description: 'Export a view in YAML format inside a provided module to reuse in other website.'
messages:
view_exported: 'View exported sucessfully'
view-exported: 'View exported sucessfully'
depencies-included: 'The following module dependencies were included at "%s"'
wrong-view: 'The view "%s" does not exist'
questions:
view: 'View to be exported'
optional-config: 'Export view in module as an optional configuration'
@@ -1,13 +1,14 @@
description: "Shows DB connection"
arguments:
database: "Database key from settings.php"
key: "Database key from settings.php"
target: "Database target from settings.php"
messages:
database-not-found: 'Database "%s" connection info wasn''t found'
database-not-found: 'Database connection with key "%s" and target "%s" info wasn''t found'
database-not-supported: 'Database type "%s" is not supported yet'
database-client-not-found: 'Database client "%s" wasn''t found'
connection: 'Connection: "%s"'
examples:
- description: 'Connects to an specified database, or the default if not arguments passed'
- description: 'Connects to an specified database with key and target, or if no arguments default key and default target will be passed'
execution: |
drupal database:connect \
<database>
<key> <target>
@@ -1,7 +1,8 @@
description: "Drop all tables in a given database."
description: 'Drop all tables in a given database.'
help: 'The <info>database:drop</info> command helps you drop database tables.'
arguments:
database: 'Database key from settings.php'
target: 'Database target from settings.php'
question:
drop-tables: 'Confirm you really want to drop all tables in the database "%s"?'
messages:
@@ -1,6 +1,8 @@
description: 'Displays current routes for the application or information for a particular route'
arguments:
route-name: 'Route names'
options:
pattern: 'Route pattern'
messages:
name: 'Route name'
class: 'Class path'
@@ -14,10 +16,12 @@ examples:
execution: 'drupal rod'
- description: 'Displays details for the route user.page (/user)'
execution: 'drupal rod user.page'
examples:
- description: 'Shows the routes list on the site'
execution: |
drupal debug:router
- description: 'Display information on the user.login'
execution: |
drupal debug:router user.login
drupal debug:router user.login
- description: 'Display information for the routes by pattern (/user/login)'
execution: |
drupal debug:router --pattern=/user/login
@@ -1,4 +1,4 @@
description: 'Delete an specific entity'
description: 'Delete a specific entity'
help: 'The <info>entity:delete</info> command helps you delete entities.'
arguments:
entity-definition-id: 'Entity definition id'
@@ -0,0 +1,58 @@
description: 'Generate a composer.json file'
help: 'The <info>"%s"</info> command helps you generate a new composer.json file'
welcome: 'Welcome to the Drupal Composer file generator'
options:
module: common.options.module
name: 'Package name'
type: 'Package type'
description: 'Package description'
keywords: 'Package keywords'
license: 'License'
homepage: 'Project homepage'
minimum-stability: 'Mininmal stability'
authors: 'Authors of the project'
support: 'Support channels'
required: 'Required packages'
questions:
module: common.questions.module
name: 'Enter package name'
type: 'Enter package type'
description: 'Enter package description'
add-keywords: 'Do you want to add package keywords?'
keyword: 'Enter a keyword or press <info>enter</info> to continue'
license: 'Enter license information'
homepage: 'Enter project homepage'
minimum-stability: 'Enter mininmal stability (stable, dev, alpha, beta and RC)'
add-author: 'Do you want to add authors of the project?'
add-another-author: 'Do you want to add another authors of the project?'
author-name: 'Enter author name or press <info>enter</info> to skip it'
author-email: 'Enter author email or press <info>enter</info> to skip it'
author-homepage: 'Enter author homepage or press <info>enter</info> to skip it'
author-role: 'Enter author role or press <info>enter</info> to skip it'
add-support: 'Do you want to add information about support channels?'
add-another-support: 'Do you want to add another information about support channels?'
support-channel: 'Enter support channel (email, issues, forum, wiki, irc, source, docs, rss)'
support-value: 'Enter support channel value'
add-required: 'Do you want to add required packages for the project?'
add-another-required: 'Do you want to add another required packages for the project?'
required-name: 'Enter required package name'
required-version: 'Enter required package version'
suggestions:
description-for-menu: 'A description for the menu entry'
examples:
- description: 'Generate composer file specifying the module machine name, package name, package type, package description, keywords, lincense, homepage, minimum stability, authors, support channels and required packages'
execution: |
drupal generate:composer \
--module="module_name" \
--name="drupal/module_name" \
--type="drupal-module" \
--description="Package description" \
--keywords='Drupal' --keywords='logging' \
--license="GPL-2.0+" \
--homepage="https://www.drupal.org/project/module_name" \
--minimum-stability="stable" \
--authors='"name":"Author name", "email":"author@email.com", "homepage":"http://website.com", "role":"Developer"' \
--support='"channel":"email", "url":"author@email.com"' \
--support='"channel":"source", "url":"http://github.com"' \
--required='"name":"drupal/views", "version":"^1.0"' \
--required='"name":"drupal/token", "version":"^2.0"'
@@ -6,18 +6,29 @@ options:
class: 'Plugin class name'
label: 'Plugin label'
plugin-id: 'Plugin ID. NOTE: This corresponds to the CKEditor plugin name. It is the first argument of the CKEDITOR.plugins.add() function in the plugin.js file.'
button-name: 'Button name. NOTE: This corresponds to the CKEditor button name. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.'
button-icon-path: 'Button icon path. This is the path to the icon/image of the button.'
buttons: 'CKEditor buttons.'
button-properties: 'Enter a new button properties.'
questions:
module: 'Enter the module name'
class: 'Enter the plugin class name'
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin ID. NOTE: This corresponds to the CKEditor plugin name. It is the first argument of the CKEDITOR.plugins.add() function in the plugin.js file.'
button-name: 'Enter the button name. NOTE: This corresponds to the CKEditor button name. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.'
button-icon-path: 'Enter the button icon path'
button-label: 'Enter the button label'
button-add: 'Do you want to add another button?'
examples:
- description: 'Generate plugin CKEditor button specifying the module name, the class, the label, its id, the button name and the icon path'
execution: |
drupal generate:plugin:ckeditorbutton \
--module="modulename" \
--class="DefaultCKEditorButton" \
--label="Default ckeditor button" \
--plugin-id="default_ckeditor_button" \
--buttons='name":"Default ckeditor button", "label":"Default ckeditor button", "icon":"modules/custom/modulename/js/plugins/default_ckeditor_button/images/icon.png"' \
--buttons='name":"My ckeditor button", "label":"My ckeditor button", "icon":"modules/custom/modulename/js/plugins/my_ckeditor_button/images/icon.png"' \
--no-interaction
drupal generate:plugin:ckeditorbutton \
--module="modulename" \
--class="DefaultCKEditorButton" \
@@ -1,5 +1,5 @@
description: 'Generate a plugin rule action'
help: 'The <info>generate:plugin:rulesaction</info> command helps you generate a new plugin rule action.'
help: 'The <info>generate:plugin:rules:action</info> command helps you generate a new plugin rule action.'
welcome: 'Welcome to the Drupal Plugin Rules Action generator'
options:
module: common.options.module
@@ -0,0 +1,32 @@
description: 'Generate a plugin rule condition'
help: 'The <info>generate:plugin:rules:condition</info> command helps you generate a new plugin rule condition.'
welcome: 'Welcome to the Drupal Plugin Rules Action generator'
options:
module: common.options.module
class: 'Plugin class'
label: 'Plugin label'
plugin-id: 'Plugin id'
category: 'Plugin category'
context: 'Plugin context'
questions:
module: common.questions.module
class: 'Enter plugin class'
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin id'
category: 'Enter plugin category'
context: 'Would you like to add a context?'
another-context: 'Would you like to add another context?'
context-name: 'Enter context name'
context-type: 'Enter context type (entity, entity:user_role, entity:user, language, any, string and etc.)'
context-label: 'Enter context label'
context-description: 'Enter context description'
examples:
- description: 'Generate a rule condition plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context'
execution: |
drupal generate:plugin:rules:condition \
--module="modulename" \
--class="DefaultAction" \
--label="Default Action" \
--plugin-id="default_condition" \
--category="Action category" \
--context='"name":"user", "type":"entity:user", "label":"Context label", "description":"Context description"'
@@ -0,0 +1,24 @@
description: 'Generate a plugin rule dataprocessor'
help: 'The <info>generate:plugin:rules:dataprocessor</info> command helps you generate a new Plugin rule dataprocessor.'
welcome: 'Welcome to the Drupal Plugin Rules Dataprocessor generator'
options:
module: common.options.module
class: 'Plugin class name'
label: 'Plugin label'
plugin-id: 'Plugin id'
category: 'Plugin category'
context: 'Plugin context'
type: 'Dataprocessor Type (user or node)'
questions:
module: 'Enter the module name'
class: 'Enter the plugin class name'
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin id'
examples:
- description: 'Generate a user rule dataprocessor plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context'
execution: |
drupal generate:plugin:rules:dataprocessor \
--module="modulename" \
--class="DefaultDataprocessor" \
--label="Default dataprocessor" \
--plugin-id="default_dataprocessor" \
@@ -0,0 +1,30 @@
description: 'Generate a validation constraint plugin.'
help: 'The <info>generate:plugin:validationconstraint</info> command helps you generate a new validation constraint plugin.'
welcome: 'Welcome to the Drupal Validation Constraint Plugin generator'
options:
class: 'Plugin class name'
label: 'Plugin label'
plugin-id: 'Plugin id'
hook: 'Generate hook to validate a field'
bundle: 'Bundle'
field-id: 'Field id'
questions:
class: 'Enter the plugin class name'
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin id'
hook: 'Do you want to generate a hook to validate a field?'
bundle: 'Enter entity bundle'
field-id: 'Enter field id'
examples:
- description: 'Generate a validation constraint plugin specifying the module name, the class, its label, the plugin id, the entity bundle and the field id'
execution: |
drupal generate:plugin:validationconstraint \
--module="modulename" \
--class="ExampleConstraint" \
--label="Example validation constraint" \
-plugin-id="example_validation_constraint" \
--hook \
--field-id="field_exmaple_id" \
--bundle="entity_example_bundle" \
--no-interaction
@@ -3,15 +3,16 @@ help: 'The <info>generate:plugin:views:field</info> command helps you generate a
welcome: 'Welcome to the Drupal Plugin View Field generator'
options:
module: 'The Module name.'
class: 'Views plugin field class name'
title: 'Views plugin field title'
description: 'Views plugin field description'
fields: 'Fields definition (class name, title and description).'
questions:
module: 'Enter the module name'
class: 'Enter the views plugin field class name'
title: 'Enter the views plugin field title'
description: 'Enter the views plugin field description'
description_default: 'My awesome custom views field plugin.'
field-add: 'Do you want to add another field?'
messages:
views-data-already-implemented: 'The hook views data was already implemented in module "%s". Please, merge the code manually'
examples:
- description: 'Generate a custom view field plugin specifying the module name, the class, a title and its description'
execution: |
@@ -7,6 +7,7 @@ options:
class: 'Class name'
interface: 'Interface'
interface-name: 'Interface name'
logger-channel: 'Logger channel'
services: 'Load services from the container.'
path-service: 'Path'
questions:
@@ -15,6 +16,7 @@ questions:
class: 'Enter the Class name'
interface: 'Create an interface'
interface-name: 'Enter the interface name'
logger-channel: 'Create a logger channel'
services: 'Enter your service'
path-service: 'Enter the path for the services'
messages:

0 comments on commit ace8d02

Please sign in to comment.
You can’t perform that action at this time.