diff --git a/translations/generate.breakpoint.yml b/translations/generate.breakpoint.yml index 9b79cbd..932cded 100644 --- a/translations/generate.breakpoint.yml +++ b/translations/generate.breakpoint.yml @@ -17,4 +17,4 @@ examples: execution: | drupal generate:breakpoint \ --theme="classy" \ - --breakpoints='"breakpoint_name":"narrow", "breakpoint_label":"narrow", "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)", "breakpoint_weight":"1", "breakpoint_multipliers":"1x"' \ No newline at end of file + --breakpoints='"breakpoint_name":"narrow" | "breakpoint_label":"narrow" | "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)" | "breakpoint_weight":"1" | "breakpoint_multipliers":"1x"' diff --git a/translations/generate.composer.yml b/translations/generate.composer.yml index 32e425f..124e9a1 100644 --- a/translations/generate.composer.yml +++ b/translations/generate.composer.yml @@ -51,8 +51,8 @@ examples: --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"' + --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"' diff --git a/translations/generate.controller.yml b/translations/generate.controller.yml index 5b05332..ace8d79 100644 --- a/translations/generate.controller.yml +++ b/translations/generate.controller.yml @@ -24,7 +24,7 @@ examples: - description: 'Generate controller specifying the module name, the class name and its routes' execution: | drupal generate:controller \ - --module="modulename" \ + --module="block" \ --class="DefaultController" \ - --routes='"title":"ControllerMethod", "name":"modulename.default_controller_hello", "method":"hello", "path":"/modulename/hello/{name}"' \ - --test \ No newline at end of file + --routes='"title":"ControllerMethod" | "name":"modulename.default_controller_hello" | "method":"hello" | "path":"/modulename/hello/{name}"' \ + --test diff --git a/translations/generate.form.alter.yml b/translations/generate.form.alter.yml index afd16b8..420213b 100644 --- a/translations/generate.form.alter.yml +++ b/translations/generate.form.alter.yml @@ -27,5 +27,5 @@ examples: execution: | drupal generate:form:alter \ --module="modulename" \ - --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ - --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ No newline at end of file + --inputs='"name":"inputtext" | "type":"text_format" | "label":"InputText" | "options":"" | "description":"Just an input text" | "maxlength":"" | "size":"" | "default_value":"" | "weight":"0" | "fieldset":""' \ + --inputs='"name":"email" | "type":"email" | "label":"Email" | "options":"" | "description":"Just an email input" | "maxlength":"" | "size":"" | "default_value":"" | "weight":"0" | "fieldset":""' \ No newline at end of file diff --git a/translations/generate.form.config.yml b/translations/generate.form.config.yml index 7590be7..82042e5 100644 --- a/translations/generate.form.config.yml +++ b/translations/generate.form.config.yml @@ -52,6 +52,6 @@ examples: --class="DefaultForm" \ --form-id="default_form" \ --config-file \ - --inputs='"name":"inputname", "type":"text_format", "label":"InputName", "options":"", "description":"Just a text input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ - --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ + --inputs='"name":"inputname" | "type":"text_format" | "label":"InputName" | "options":"" | "description":"Just a text input" | "maxlength":"" | "size":"" | "default_value":"" | "weight":"0" | "fieldset":""' \ + --inputs='"name":"email" | "type":"email" | "label":"Email" | "options":"" | "description":"Just an email input" | "maxlength":"" | "size":"" | "default_value":"" | "weight":"0" | "fieldset":""' \ --path="/modulename/form/default" diff --git a/translations/generate.form.yml b/translations/generate.form.yml index 75ec09e..04e6861 100644 --- a/translations/generate.form.yml +++ b/translations/generate.form.yml @@ -52,6 +52,6 @@ examples: --class="DefaultForm" \ --form-id="default_form" \ --config-file \ - --inputs='"name":"inputname", "type":"text_format", "label":"InputName", "options":"", "description":"Just a text input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ - --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ + --inputs='"name":"inputname" | "type":"text_format" | "label":"InputName" | "options":"" | "description":"Just a text input" | "maxlength":"" | "size":"" | "default_value":"" | "weight":"0" | "fieldset":""' \ + --inputs='"name":"email" | "type":"email" | "label":"Email" | "options":"" | "description":"Just an email input" | "maxlength":"" | "size":"" | "default_value":"" | "weight":"0" | "fieldset":""' \ --path="/modulename/form/default" diff --git a/translations/generate.permissions.yml b/translations/generate.permissions.yml index 83a30fb..45b4c89 100644 --- a/translations/generate.permissions.yml +++ b/translations/generate.permissions.yml @@ -13,3 +13,10 @@ questions: suggestions: access-content: 'Access content' allow-access-content: 'Allow access to my content' +examples: + - description: 'Generate a permission' + execution: | + drupal generate:permissions \ + --module="modulename" \ + --permissions='"permission":"access content" | "title":"Access content" | "description":"Allow access to my content" | "restrict_access":"none"' \ + --permissions='"permission":"access content 2" | "title":"Access content 2" | "description":"Allow access to my content 2" | "restrict_access":"none"' diff --git a/translations/generate.plugin.block.yml b/translations/generate.plugin.block.yml index 6510194..e628d54 100644 --- a/translations/generate.plugin.block.yml +++ b/translations/generate.plugin.block.yml @@ -17,7 +17,6 @@ questions: services: 'Enter your service' theme-region: 'Enter the theme region to render the Plugin Block.' type: 'Enter New field type' - label: 'Input label' description: 'Description' default-value: 'Default value' weight: 'Weight for input item' @@ -33,4 +32,5 @@ examples: --label="Default block" \ --plugin-id="default_block" \ --theme-region="header" \ - --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""' \ No newline at end of file + --inputs='"name":"inputtext" | "type":"text_format" | "label":"InputText" | "options":"" | "description":"Just an input text" | "maxlength":"" | "size":"" | "default_value":"" | "weight":"0" | "fieldset":""' + --inputs='"name":"inputRadio" | "type":"radio" | "label":"inputRadio" | "options":"array("inputRadio1" => "inputRadio 1", "inputRadio2" => "inputRadio 2")"' diff --git a/translations/generate.plugin.ckeditorbutton.yml b/translations/generate.plugin.ckeditorbutton.yml index 607b0f7..be3e0ae 100644 --- a/translations/generate.plugin.ckeditorbutton.yml +++ b/translations/generate.plugin.ckeditorbutton.yml @@ -25,8 +25,8 @@ examples: --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"' \ + --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 \ @@ -35,4 +35,4 @@ examples: --label="Default ckeditor button" \ --plugin-id="default ckeditor button" \ --button-name="Default ckeditor button" \ - --button-icon-path="modules/custom/modulename/js/plugins/default ckeditor button/images/icon.png" \ No newline at end of file + --buttons='name":"Default ckeditor button" | "label":"Default ckeditor button" | "icon":"modules/custom/modulename/js/plugins/default_ckeditor_button/images/icon.png"' diff --git a/translations/generate.plugin.migrate.source.yml b/translations/generate.plugin.migrate.source.yml index 081b520..4cdd85f 100644 --- a/translations/generate.plugin.migrate.source.yml +++ b/translations/generate.plugin.migrate.source.yml @@ -35,7 +35,7 @@ examples: --plugin-id="default_plugin_class" \ --table="users" \ --alias="u" \ - --fields='"id":"id", "description":"the user id"' \ - --fields='"id":"username", "description":"the username"' \ - --fields='"id":"password", "description":"the user password"' \ - --fields='"id":"email", "description":"the user email"' + --fields='"id":"id" | "description":"the user id"' \ + --fields='"id":"username" | "description":"the username"' \ + --fields='"id":"password" | "description":"the user password"' \ + --fields='"id":"email" | "description":"the user email"' diff --git a/translations/generate.plugin.rules.action.yml b/translations/generate.plugin.rules.action.yml index 1fe7907..eaf4909 100644 --- a/translations/generate.plugin.rules.action.yml +++ b/translations/generate.plugin.rules.action.yml @@ -29,7 +29,7 @@ examples: --label="Default Action" \ --plugin-id="default_action" \ --category="Action category" \ - --context='"name":"user", "type":"entity:user", "label":"Context label", "description":"Context description"' + --context='"name":"user" | "type":"entity:user" | "label":"Context label" | "description":"Context description"' - description: 'Generate a entity rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context' execution: | drupal generate:plugin:rules:action \ @@ -38,4 +38,4 @@ examples: --label="Default Action" \ --plugin-id="default_action" \ --category="Action category" \ - --context='"entity":"node", "type":"entity", "label":"Context label", "description":"Context description"' + --context='"entity":"node" | "type":"entity" | "label":"Context label" | "description":"Context description"' diff --git a/translations/generate.plugin.rules.condition.yml b/translations/generate.plugin.rules.condition.yml index 9d27219..ce009bf 100644 --- a/translations/generate.plugin.rules.condition.yml +++ b/translations/generate.plugin.rules.condition.yml @@ -29,4 +29,4 @@ examples: --label="Default Action" \ --plugin-id="default_condition" \ --category="Action category" \ - --context='"name":"user", "type":"entity:user", "label":"Context label", "description":"Context description"' \ No newline at end of file + --context='"name":"user" | "type":"entity:user" | "label":"Context label" | "description":"Context description"' \ No newline at end of file diff --git a/translations/generate.plugin.views.field.yml b/translations/generate.plugin.views.field.yml index 0750835..24ea8c1 100644 --- a/translations/generate.plugin.views.field.yml +++ b/translations/generate.plugin.views.field.yml @@ -18,6 +18,4 @@ examples: execution: | drupal generate:plugin:views:field \ --module="modulename" \ - --class="CustomViewsField" \ - --title="Custom views field" \ - --description="My awesome custom views field plugin." + --fields='"title":"Custom views field" | "description":"My awesome custom views field plugin." | "class_name":"CustomViewsField" | "class_machine_name":"custom_views_field"' diff --git a/translations/generate.theme.yml b/translations/generate.theme.yml index 9b54abd..2e0f295 100644 --- a/translations/generate.theme.yml +++ b/translations/generate.theme.yml @@ -68,6 +68,6 @@ examples: --package="MyThemePackage" \ --global-library="global-styling" \ --base-theme="stable" \ - --regions='"region_name":"Content", "region_machine_name":"content"' \ - --regions='"region_name":"Panel", "region_machine_name":"panel"' \ - --breakpoints='"breakpoint_name":"narrow", "breakpoint_label":"narrow", "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)", "breakpoint_weight":"1", "breakpoint_multipliers":"1x"' + --regions='"region_name":"Content" | "region_machine_name":"content"' \ + --regions='"region_name":"Panel" | "region_machine_name":"panel"' \ + --breakpoints='"breakpoint_name":"narrow" | "breakpoint_label":"narrow" | "breakpoint_media_query":"all and (min-width: 560px) and (max-width: 850px)" | "breakpoint_weight":"1" | "breakpoint_multipliers":"1x"'