diff --git a/translations/application.yml b/translations/application.yml
index 9b5a21e..d6a4eda 100644
--- a/translations/application.yml
+++ b/translations/application.yml
@@ -1,13 +1,13 @@
options:
env: 'The Environment name'
- no-debug: 'Switches off debug mode'
+ debug: 'Switches on debug mode'
learning: 'Generate a verbose code output'
generate-chain: 'Shows command options and arguments as yaml output to be used in chain command'
generate-inline: 'Shows command options and arguments as inline command'
generate-doc: 'Shows command options and arguments as markdown'
root: 'Define the Drupal root to be used in command execution'
uri: 'URI of the Drupal site to use (for multi-site environments or when running on an alternate port)'
- yes: 'Skip confirmation and proceed'
+ 'yes': 'Skip confirmation and proceed'
target: 'Site name you want to interact with (for local or remote sites)'
help: 'Display this help message'
quiet: 'Suppress all output from the command'
@@ -17,6 +17,7 @@ options:
no-ansi: 'Disable ANSI output'
no-interaction: 'Do not ask any interactive question'
check-fix: 'Attempt to fix any missing configuration.'
+ no-debug: 'Switches off debug mode'
arguments:
command: 'The command to execute'
messages:
@@ -29,26 +30,22 @@ messages:
files:
generated: 'Generated or updated files'
copied: 'Copied files'
+ 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 }}\")."
- autocomplete: |
- Bash: Bash support depends on the http://bash-completion.alioth.debian.org/
- project which can be installed with your package manager of choice. Then add
- this line to your shell configuration file.
- source "$HOME/.console/console.rc" 2>/dev/null
-
- Bash or Zsh: Add this line to your shell configuration file:
- source "$HOME/.console/console.rc" 2>/dev/null
-
- Fish: Create a symbolic link
- ln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish
+ autocomplete: "Bash: Bash support depends on the http://bash-completion.alioth.debian.org/\nproject which can be installed with your package manager of choice. Then add\nthis line to your shell configuration file.\nsource \"$HOME/.console/console.rc\" 2>/dev/null\n\nBash or Zsh: Add this line to your shell configuration file:\nsource \"$HOME/.console/console.rc\" 2>/dev/null\n\nFish: Create a symbolic link\nln -s ~/.console/drupal.fish ~/.config/fish/completions/drupal.fish\n"
version: '%s version %s'
disable:
- command:
- error: 'Command: "%s" is deprecated.'
- extra: 'You must execute: "%s" instead'
+ command:
+ error: 'Command: "%s" is deprecated.'
+ extra: 'You must execute: "%s" instead'
errors:
invalid-command: 'Command "%s", is not a valid command name.'
+ renamed-command: 'Command "%s" was renamed, use "%s" instead.'
+ drush-command: 'Command "%s" is a Drush command (deprecated). Drupal Console equivalent "%s" was executed instead.'
+ statistics-failed: "The Drupal console failed to send statistics. After 10 attempts, this feature was disabled.\nIf you want to enable it again, use the following command:\n\ndrupal settings:set statistics.enabled true\n"
+ statistics-url-failed: "The Drupal console failed to send statistics.\nYou must configure it in the global config.yml, use the following command and choose your preference:\n\ndrupal init"
site:
messages:
path: 'Site path'
@@ -62,13 +59,26 @@ site:
user:
messages:
path: 'User home path'
-
remote:
- errors:
- passphrase-missing: 'Passphrase file is missing'
- passphrase-empty: 'Passphrase file is empty'
- private-missing: 'Private file is missing'
- private-empty: 'Private file is empty'
- private-invalid: 'Private file is invalid'
- invalid-root: 'Invalid root directory'
- console-not-found: 'Drupal Console not found on this site'
\ No newline at end of file
+ errors:
+ passphrase-missing: 'Passphrase file is missing'
+ passphrase-empty: 'Passphrase file is empty'
+ private-missing: 'Private file is missing'
+ private-empty: 'Private file is empty'
+ private-invalid: 'Private file is invalid'
+ invalid-root: 'Invalid root directory'
+ console-not-found: 'Drupal Console not found on this site'
+gitbook:
+ messages:
+ title: 'Available Drupal Console Commands'
+ note: Note
+ note-description: 'Drupal Console commands *must* be run from the root of a Drupal 8 installation'
+ command: 'Drupal Console Command'
+ command_description: 'The **"%s"** command "%s"'
+ usage: Usage
+ options: 'Available options'
+ option: Option
+ details: Details
+ arguments: 'Available arguments'
+ argument: Argument
+ examples: Examples
diff --git a/translations/cache.rebuild.yml b/translations/cache.rebuild.yml
index f3a6118..ed68f8f 100644
--- a/translations/cache.rebuild.yml
+++ b/translations/cache.rebuild.yml
@@ -5,11 +5,14 @@ messages:
welcome: 'Welcome to the cache:rebuild command'
rebuild: 'Rebuilding cache(s), wait a moment please.'
completed: 'Done clearing cache(s).'
+ invalid-cache: 'Cache "%s" is invalid.'
invalid_cache: 'Cache "%s" is invalid.'
questions:
cache: 'Select cache.'
examples:
- - description: Rebuild all caches
- execution: drupal cr all
- - description: Rebuild discovery cache
- execution: drupal cr discovery
+ -
+ description: 'Rebuild all caches'
+ execution: 'drupal cr all'
+ -
+ description: 'Rebuild discovery cache'
+ execution: 'drupal cr discovery'
diff --git a/translations/cache.tag.invalidate.yml b/translations/cache.tag.invalidate.yml
new file mode 100644
index 0000000..dbe22a2
--- /dev/null
+++ b/translations/cache.tag.invalidate.yml
@@ -0,0 +1,11 @@
+description: 'Invalidate cache tags.'
+options:
+ tag: 'One or more tags to invalidate.'
+messages:
+ start: 'Invalidating tag(s) "%s".'
+ completed: 'Done invalidating tag(s).'
+examples:
+ - description: Invalidate routes
+ execution: drupal cti routes
+ - description: Invalidate a specific node
+ execution: drupal cti node:1 node_list
diff --git a/translations/chain.yml b/translations/chain.yml
index 0e16631..3987d48 100644
--- a/translations/chain.yml
+++ b/translations/chain.yml
@@ -4,10 +4,22 @@ options:
questions:
chain-file: 'Select chain file to execute'
messages:
- missing_file: 'You must provide a valid file path and name.'
- invalid_file: 'The file "%s" does not exist.'
- module_install: 'module:install command is not runnable inside a chain queue and must be run independently.'
+ missing-file: 'You must provide a valid file path and name.'
+ invalid-file: 'The file "%s" does not exist.'
+ module-install: 'module:install command is not runnable inside a chain queue and must be run independently.'
missing-environment-placeholders: 'Missing environment placeholder(s) "%s"'
set-environment-placeholders: 'Set environment placeholders as:'
missing-inline-placeholders: 'Missing inline placeholder(s) "%s"'
set-inline-placeholders: 'Pass inline placeholders as:'
+ select-value-for-placeholder: 'Select value for "%s" placeholder'
+ enter-value-for-placeholder: 'Enter value for "%s" placeholder'
+ legacy-inline: 'Update inline legacy placeholders from %{{name}} to {{name}}.'
+ legacy-environment: 'Update environment legacy placeholders from ${{(NAME}} or %env(NAME)% to {{env("NAME")}}.'
+ metadata-registration: "You should register your chain file as command by providing metadata, more info at:\n https://docs.drupalconsole.com/en/chains/registering.html"
+ missing_file: 'You must provide a valid file path and name.'
+ invalid_file: 'The file "%s" does not exist.'
+ module_install: 'module:install command is not runnable inside a chain queue and must be run independently.'
+examples:
+ -
+ description: 'Providing a file option using full path. (DEPRECATED'
+ execution: "drupal chain \\\n --file=\"/path/to/file/chain-file.yml\"\n"
diff --git a/translations/check.yml b/translations/check.yml
index 56c4534..8c4c3b0 100644
--- a/translations/check.yml
+++ b/translations/check.yml
@@ -1,9 +1,14 @@
description: 'System requirement checker'
messages:
- file: 'Checking requirements using file at:'
- php_invalid: 'The current installed version "%s" is invalid, it requires "%s" or higher'
- configuration_missing: 'The configuration "%s" is missing.'
- configuration_overwritten: 'The PHP-Configuration (php.ini) "%s" was missing and overwritten with "%s".'
- extension_missing: 'The extension "%s" is missing.'
- extension_recommended: 'The extension "%s" is recommended to install.'
- success: 'Checks passed.'
+ file: 'Checking requirements using file at:'
+ php-invalid: 'The current installed version "%s" is invalid, it requires "%s" or higher'
+ configuration-missing: 'The configuration "%s" is missing.'
+ configuration-overwritten: 'The PHP-Configuration (php.ini) "%s" was missing and overwritten with "%s".'
+ extension-missing: 'The extension "%s" is missing.'
+ extension-recommended: 'The extension "%s" is recommended to install.'
+ success: 'Checks passed.'
+ php_invalid: 'The current installed version "%s" is invalid, it requires "%s" or higher'
+ configuration_missing: 'The configuration "%s" is missing.'
+ configuration_overwritten: 'The PHP-Configuration (php.ini) "%s" was missing and overwritten with "%s".'
+ extension_missing: 'The extension "%s" is missing.'
+ extension_recommended: 'The extension "%s" is recommended to install.'
diff --git a/translations/common.yml b/translations/common.yml
index fa60af9..ec0f830 100644
--- a/translations/common.yml
+++ b/translations/common.yml
@@ -22,10 +22,13 @@ questions:
confirm: 'Do you want to load services from the container'
message: "\nType the service name or use keyup or keydown.\nThis is optional, press enter to continue\n"
name: 'Enter your service'
+ roles:
+ message: "\nType the role name or use keyup or keydown.\nThis is optional, press enter to continue\n"
+ name: 'Enter your role'
inputs:
confirm: 'Do you want to generate a form structure?'
label: 'Input label'
- machine_name: 'Input machine name'
+ machine-name: 'Input machine name'
permission: 'Do you want to generate permissions?'
type: 'New field type (press to stop adding fields)'
invalid: 'Field Type "%s" is invalid.'
@@ -34,8 +37,10 @@ questions:
default-value: 'Default value'
checkboxes: 'Default value(s) separated by commas'
weight: 'Weight for input item'
- title: 'Title'
- fieldset: 'Fieldset'
+ title: Title
+ fieldset: Fieldset
+ new-field: 'Enter a new field properties'
+ machine_name: 'Input machine name'
errors:
module-dependency: 'Missing module dependency "%s" is not installed. Try module:install to install it.'
class-name-empty: 'The Class name can not be empty'
@@ -50,3 +55,4 @@ messages:
drupal-core: 'Drupal Core'
move-phar: 'Accessing console from anywhere on your system'
quick-start: 'Download, install and serve Drupal 8'
+ available-field-types: 'Available types: %s'
diff --git a/translations/composerize.yml b/translations/composerize.yml
new file mode 100644
index 0000000..babb4c1
--- /dev/null
+++ b/translations/composerize.yml
@@ -0,0 +1,14 @@
+description: 'Converts Drupal codebase to composer.'
+options:
+ show-packages: 'Show list of packages.'
+ include-version: 'Include version on suggested result command.'
+messages:
+ name: 'Name'
+ version: 'Version'
+ dependencies: 'Dependencies'
+ profile: 'Profile(s) detected'
+ module: 'Module(s) detected'
+ theme: 'Theme(s) detected'
+ from: 'From your project root:'
+ execute: 'Execute this command:'
+ ignore: 'To ignore third party libraries, profiles, modules and themes add to your .gitignore file:'
diff --git a/translations/config.delete.yml b/translations/config.delete.yml
index b624f2d..4c20cb5 100644
--- a/translations/config.delete.yml
+++ b/translations/config.delete.yml
@@ -13,4 +13,8 @@ errors:
warnings:
undo: 'This action will delete all configuration permanentaly.'
questions:
- sure: 'Are you sure to delete all configuration'
\ No newline at end of file
+ sure: 'Are you sure to delete all configuration'
+examples:
+ -
+ description: 'Provide a config type and a config name'
+ execution: 'drupal config:delete active all'
diff --git a/translations/config.diff.yml b/translations/config.diff.yml
index c5b3729..054a2ab 100644
--- a/translations/config.diff.yml
+++ b/translations/config.diff.yml
@@ -7,8 +7,12 @@ questions:
directories: 'Config directory:'
table:
headers:
- collection: 'Collection'
- config-name: 'Configuration item'
- operation: 'Operation'
+ collection: Collection
+ config-name: 'Configuration item'
+ operation: Operation
messages:
no-changes: 'There are no changes.'
+examples:
+ -
+ description: 'Provide a config directory'
+ execution: 'drupal config:diff ../config/path'
diff --git a/translations/config.edit.yml b/translations/config.edit.yml
index 19dc54b..bd2a019 100644
--- a/translations/config.edit.yml
+++ b/translations/config.edit.yml
@@ -6,3 +6,11 @@ questions:
config-name: 'Choose a configuration unit'
messages:
no-directory: 'An error occurred while creating your directory at'
+ choose-configuration: 'Choose a configuration'
+examples:
+ -
+ description: 'Edit system cron configurations with "vim" (default editor).'
+ execution: 'drupal config:edit system.cron'
+ -
+ description: 'Edit system cron configurations with "gedit".'
+ execution: 'drupal config:edit system.cron gedit'
diff --git a/translations/config.export.content.type.yml b/translations/config.export.content.type.yml
index 597af8a..0555c89 100644
--- a/translations/config.export.content.type.yml
+++ b/translations/config.export.content.type.yml
@@ -3,8 +3,23 @@ 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.'
+ include-module-dependencies: 'Include content type module dependencies in module info YAML file'
messages:
+ content-type-exported: 'Exporting content type'
content_type_exported: 'Exporting content type'
options:
optional-config: 'Export content type as an optional YAML configuration in your module'
+ remove-uuid: 'If set, the configuration will be exported without uuid key.'
+ remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
+ include-module-dependencies: 'Include content type module dependencies in module info YAML file'
+examples:
+ -
+ description: 'Provide a content type and module name.'
+ execution: "drupal config:export:content:type page \\\n --module=\"demo\""
+ -
+ description: 'Export content type as an optional config for the provided module.'
+ execution: "drupal config:export:content:type page \\\n --module=\"demo\" \\\n --optional-config \\\n --remove-uuid \\\n --remove-config-hash\n"
diff --git a/translations/config.export.entity.yml b/translations/config.export.entity.yml
new file mode 100644
index 0000000..0dae537
--- /dev/null
+++ b/translations/config.export.entity.yml
@@ -0,0 +1,32 @@
+description: 'Export a specific config entity and their fields.'
+arguments:
+ entity-type: 'An entity type (node_type, taxonomy_vocabulary, paragraphs_type) to be exported'
+ bundle: 'A bundle to be exported'
+questions:
+ all: 'All'
+ entity-type: 'Select entity type'
+ bundle: 'A bundle to be exported'
+ remove-uuid: 'The bundle to be exported without uuid key.'
+ optional-config: 'Export the bundle in the module as an optional configuration'
+ remove-config-hash: 'The bundle to be exported without the default site hash key.'
+ include-module-dependencies: 'Include bundle module dependencies in module info YAML file'
+messages:
+ bundle-exported: 'Exporting bundle %s'
+options:
+ optional-config: 'Export bundle as an optional YAML configuration in your module'
+ remove-uuid: 'If set, the configuration will be exported without uuid key.'
+ remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
+ include-module-dependencies: 'Include bundle module dependencies in module info YAML file'
+examples:
+ - description: 'Provide an entity type, a bundle and a module name'
+ execution: |
+ drupal config:export:entity node_type page \
+ --module="demo"
+ - description: 'If you want export a bundle as an optional config'
+ execution: |
+ drupal config:export:entity node_type page \
+ --module="demo" \
+ --optional-config \
+ --remove-uuid \
+ --remove-config-hash
+
diff --git a/translations/config.export.single.yml b/translations/config.export.single.yml
index e410915..c4495f6 100644
--- a/translations/config.export.single.yml
+++ b/translations/config.export.single.yml
@@ -1,7 +1,6 @@
description: 'Export a single configuration or a list of configurations as yml file(s).'
-arguments:
- name: 'Configuration name.'
options:
+ name: 'Configuration name.'
include-dependencies: 'Export dependencies of the configuration as well.'
simple-configuration: 'Simple configuration'
optional: 'Export config as an optional YAML configuration in your module'
@@ -19,3 +18,10 @@ messages:
invalid-config-type: 'Invalid config type, please select one of the list'
invalid-config-name: 'Invalid config name, please select one of the list'
config-exported: 'Configuration(s) exported sucessfully'
+examples:
+ -
+ description: 'Provide config settings name to be exported.'
+ execution: "drupal config:export:single \\\n --name=config.settings.name"
+ -
+ description: 'Export with uuid and config hashes removed.'
+ execution: "drupal config:export:single \\\n --name=config.settings.name \\\n --remove-uuid \\\n --remove-config-hash\n"
diff --git a/translations/config.export.view.yml b/translations/config.export.view.yml
index 4177d01..58261cf 100644
--- a/translations/config.export.view.yml
+++ b/translations/config.export.view.yml
@@ -1,13 +1,29 @@
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'
+ view_exported: 'View exported sucessfully'
questions:
view: 'View to be exported'
optional-config: 'Export view in module as an optional configuration'
include-module-dependencies: 'Include view module dependencies in module info YAML file'
+ remove-uuid: 'The view to be exported without uuid key.'
+ remove-config-hash: 'The view to be exported without the default site hash key.'
arguments:
view-id: 'View ID'
options:
optional-config: 'Export view as an optional YAML configuration in your module'
include-module-dependencies: 'Include module dependencies in module info YAML file'
+ remove-uuid: 'If set, the configuration will be exported without uuid key.'
+ remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
+examples:
+ -
+ description: 'Perform a simple export.'
+ execution: 'drupal config:export:view viewid'
+ -
+ description: 'Export as optional config for the provided module.'
+ execution: "drupal config:export:view viewid \\\n --module=\"modulename\" \\\n --optional-config \\\n --include-module-dependencies \\\n --remove-uuid \\\n --remove-config-hash"
+ -
+ description: 'Export as config for the provided module, updating the module''s info.yml with any module dependencies from the view.'
+ execution: "drupal config:export:view viewid \\\n --module=\"modulename\" \\\n --optional-config \\\n --include-module-dependencies"
diff --git a/translations/config.export.yml b/translations/config.export.yml
index 7266b45..beb8ffd 100644
--- a/translations/config.export.yml
+++ b/translations/config.export.yml
@@ -4,6 +4,15 @@ options:
tar: 'If set, the configuration will be exported to an archive file.'
remove-uuid: 'If set, the configuration will be exported without uuid key.'
remove-config-hash: 'If set, the configuration will be exported without the default site hash key.'
+questions:
+ directory: 'Enter the directory name to save the configuration files.'
messages:
directory: 'The configuration was exported at "%s"'
error: 'An error occurred while creating your directory at "%s"'
+examples:
+ -
+ description: 'Optional you can add the path to export'
+ execution: "drupal config:export \\\n --directory=\"path/to/export\"\n"
+ -
+ description: 'Export as a compressed file with uuid and config hashes removed'
+ execution: "drupal config:export \\\n --directory=\"path/to/export\" \\\n --tar \\\n --remove-uuid \\\n --remove-config-hash\n"
diff --git a/translations/config.import.single.yml b/translations/config.import.single.yml
index 4773627..c9b9063 100644
--- a/translations/config.import.single.yml
+++ b/translations/config.import.single.yml
@@ -1,11 +1,19 @@
description: 'Import a single configurations or a list of configurations.'
-arguments:
- name: 'Configuration name'
- file: 'Path to the import file'
- config-names: 'Configuration names (when used with "chain" command).'
+options:
+ file: 'The file(s) name or file(s) absolute path to import'
+ directory: 'The path from where to import file(s).'
questions:
- name: 'Enter configuration name'
file: 'Enter path to the import file'
+ directory: 'Enter absolute path from where to import files.'
+ name: 'Enter configuration name'
messages:
+ missing-file: 'File option is missing.'
empty-value: 'Value can not be empty'
success: 'Configuration(s) "%s", has been imported successfully.'
+examples:
+ -
+ description: 'Providing a file option using full path.'
+ execution: "drupal config:import:single \\\n --file=\"/path/to/file/block.block.default_block.yml\"\n"
+ -
+ description: 'Providing file and directory options'
+ execution: "drupal config:import:single \\\n --file=\"block.block.default_block.yml\" \\\n --directory=\"/path/to/directory\"\n"
diff --git a/translations/config.import.yml b/translations/config.import.yml
index 330cd45..205d658 100644
--- a/translations/config.import.yml
+++ b/translations/config.import.yml
@@ -3,9 +3,19 @@ options:
file: 'Path to an archive file of configuration to import.'
directory: 'Path to a directory of configuration to import.'
remove-files: 'Remove files after synchronization.'
+ skip-uuid: 'Skip uuid from files'
+questions:
+ directory: 'Enter the directory name to import the configuration files.'
messages:
config_files_imported: 'List of config files.'
imported: 'Configuration imported successfully.'
importing: 'Importing configuration.'
already-imported: 'Another request may be synchronizing configuration already.'
nothing-to-do: 'There are no changes to import.'
+examples:
+ -
+ description: 'Provide a configuration file'
+ execution: "drupal config:import \\\n --file=/path/to/config/file"
+ -
+ description: 'Provide a configuration directory'
+ execution: "drupal config:import \\\n --directory=/path/to/config/dir\n"
diff --git a/translations/config.override.yml b/translations/config.override.yml
index 26ce5bb..fecf9ec 100644
--- a/translations/config.override.yml
+++ b/translations/config.override.yml
@@ -5,14 +5,19 @@ questions:
value: 'Enter the configuration value'
arguments:
name: 'Configuration name'
- key: 'Key'
- value: 'Value'
+ key: Key
+ value: Value
+options:
+ key: Key
+ value: Value
messages:
configuration: 'Configuration name'
configuration-key: 'Configuration key'
original: 'Original Value'
updated: 'Override Value'
invalid-name: 'Config object "%s" does not exist.'
+ invalid-config-file: 'Config file does not exist.'
examples:
- - description: 'Set the Contact module flood limit to 10.'
- execution: 'drupal config:override contact.settings flood.limit 10'
+ -
+ description: 'Set the Contact module flood limit to 10.'
+ execution: 'drupal config:override contact.settings flood.limit 10'
diff --git a/translations/config.validate.yml b/translations/config.validate.yml
index 00a8bff..4a85ffc 100644
--- a/translations/config.validate.yml
+++ b/translations/config.validate.yml
@@ -1,6 +1,10 @@
description: 'Validate a drupal config against its schema'
-options: {}
-arguments: {}
+options: { }
+arguments: { }
messages:
success: 'Config was successfully validated'
- no-conf: 'Config with this name does not exist'
\ No newline at end of file
+ no-conf: 'Config with this name does not exist'
+examples:
+ -
+ description: 'Provide the configuration name.'
+ execution: 'drupal config:validate configuration.name'
diff --git a/translations/create.comments.yml b/translations/create.comments.yml
index 0557a46..fc7920a 100644
--- a/translations/create.comments.yml
+++ b/translations/create.comments.yml
@@ -2,7 +2,7 @@ description: 'Create dummy comments for your Drupal 8 application.'
help: 'The create:comments command helps you create dummy comments.'
welcome: 'Welcome to the Drupal comments generator'
arguments:
- node-id: 'Node ID where the comments will be created'
+ node-id: 'Node ID where the comments will be created'
options:
limit: 'How many comments would you like to create'
title-words: 'Maximum number of words in comment titles'
@@ -14,7 +14,7 @@ questions:
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the comments be dated?'
time-ranges:
- - 'Now'
+ - Now
- '1 hour ago'
- '1 day ago'
- '1 week ago'
@@ -24,7 +24,15 @@ messages:
node-id: 'Node Id'
comment-id: 'Comment Id'
content-type: 'Content type'
- title: 'Title'
+ title: Title
created: 'Created Time'
invalid-content-types: 'Content types "%s" are invalid'
created-comments: 'Created "%s" comments successfully'
+ error: 'Error creating comments: "%s"'
+examples:
+ -
+ description: 'Provide the node id where the comments will be generated.'
+ execution: 'drupal create:comments node-id'
+ -
+ description: 'Provide number of comments to generate, max title words and time range.'
+ execution: "drupal create:comments node-id \\\n --limit=\"2\" \\\n --title-words=\"5\" \\\n --time-range=\"1\"\n"
diff --git a/translations/create.nodes.yml b/translations/create.nodes.yml
index b6f3d7a..4adce30 100644
--- a/translations/create.nodes.yml
+++ b/translations/create.nodes.yml
@@ -2,27 +2,37 @@ description: 'Create dummy nodes for your Drupal 8 application.'
help: 'The create:nodes command helps you create dummy nodes.'
welcome: 'Welcome to the Drupal nodes generator'
arguments:
- content-types: 'Content type(s) to be used in node creation'
+ content-types: 'Content type(s) to be used in node creation'
options:
limit: 'How many nodes would you like to create'
title-words: 'Maximum number of words in node titles'
time-range: 'How far back in time should the nodes be dated'
+ revision: 'Create revisions'
questions:
content-type: 'Select content type(s) to be used on node creation'
limit: 'Enter how many nodes would you like to generate'
title-words: 'Enter the maximum number of words in titles'
time-range: 'How far back in time should the nodes be dated?'
time-ranges:
- - 'Now'
+ - Now
- '1 hour ago'
- '1 day ago'
- '1 week ago'
- '1 month ago'
- '1 year ago'
+ revision: 'Do you want to add revisions?'
messages:
node-id: 'Node Id'
content-type: 'Content type'
- title: 'Title'
+ title: Title
created: 'Created Time'
invalid-content-types: 'Content types "%s" are invalid'
created-nodes: 'Created "%s" nodes successfully'
+ error: 'Error creating nodes: "%s"'
+examples:
+ -
+ description: 'Provide the content type name.'
+ execution: 'drupal create:nodes content-name'
+ -
+ description: 'Provide the limit of publications, limit of title words, time range and language.'
+ execution: "drupal create:nodes content-name \\\n --limit=\"5\" \\\n --title-words=\"5\" \\\n --time-range=\"1\" \\\n --revision \\\n --language=\"und\"\n"
diff --git a/translations/create.roles.yml b/translations/create.roles.yml
new file mode 100644
index 0000000..7584c5d
--- /dev/null
+++ b/translations/create.roles.yml
@@ -0,0 +1,19 @@
+description: 'Create dummy roles for your Drupal 8 application.'
+help: 'The create:roles command helps you create dummy roles.'
+welcome: 'Welcome to the Drupal roles generator'
+options:
+ limit: 'How many roles would you like to create'
+questions:
+ limit: 'Enter how many roles would you like to create'
+messages:
+ role-id: 'Role Id'
+ role-name: 'Rolename'
+ created-roles: 'Created "%s" roles successfully'
+ error: 'Error creating roles: "%s"'
+examples:
+ - description: 'Provide roles.'
+ execution: drupal create:roles
+ - description: 'Provide the number of roles to create'
+ execution: |
+ drupal create:roles
+
diff --git a/translations/create.terms.yml b/translations/create.terms.yml
index 4e02e8c..877df7a 100644
--- a/translations/create.terms.yml
+++ b/translations/create.terms.yml
@@ -2,7 +2,7 @@ description: 'Create dummy terms for your Drupal 8 application.'
help: 'The create:terms command helps you create dummy terms.'
welcome: 'Welcome to the Drupal terms creator'
arguments:
- vocabularies: 'Vocabulary(s) to be used in terms creation'
+ vocabularies: 'Vocabulary(s) to be used in terms creation'
options:
limit: 'How many terms would you like to create'
name-words: 'Maximum number of words in term names'
@@ -12,7 +12,15 @@ questions:
name-words: 'Enter the maximum number of words in term names'
messages:
term-id: 'Term Id'
- vocabulary: 'Vocabulary'
- name: 'Name'
+ vocabulary: Vocabulary
+ name: Name
invalid-vocabularies: 'Vocabulary(s) "%s" are invalid'
created-terms: 'Created "%s" terms successfully'
+ error: 'Error creating terms: "%s"'
+examples:
+ -
+ description: 'Provide the vocabulary term name.'
+ execution: 'drupal create:terms vocabulary'
+ -
+ description: 'Provide the limit of terms to add and limit of title words.'
+ execution: "drupal create:terms tags \\\n --limit=\"10\" \\\n --name-words=\"5\"\n"
diff --git a/translations/create.users.yml b/translations/create.users.yml
index 057bf42..65ba8c0 100644
--- a/translations/create.users.yml
+++ b/translations/create.users.yml
@@ -2,7 +2,7 @@ description: 'Create dummy users for your Drupal 8 application.'
help: 'The create:users command helps you create dummy users.'
welcome: 'Welcome to the Drupal users generator'
arguments:
- roles: 'Role(s) to be used in user creation'
+ roles: 'Role(s) to be used in user creation'
options:
limit: 'How many users would you like to create'
password: 'Password to be set to users created'
@@ -13,7 +13,7 @@ questions:
password: 'Enter the password to be set to users created'
time-range: 'How far back in time should the users be dated?'
time-ranges:
- - 'Now'
+ - Now
- '1 hour ago'
- '1 day ago'
- '1 week ago'
@@ -21,7 +21,15 @@ questions:
- '1 year ago'
messages:
user-id: 'User Id'
- roles: 'Roles'
- username: 'Username'
+ roles: Roles
+ username: Username
created: 'Created Time'
created-users: 'Created "%s" users successfully'
+ error: 'Error creating users: "%s"'
+examples:
+ -
+ description: 'Provide the user role.'
+ execution: 'drupal create:users role'
+ -
+ description: 'Provide the number of users to create, password and time range to create.'
+ execution: "drupal create:users role \\\n --limit=\"5\" \\\n --password=\"usersnewpassword\" \\\n --time-range=\"1\"\n"
diff --git a/translations/create.vocabularies.yml b/translations/create.vocabularies.yml
index cdc9a55..81d85f4 100644
--- a/translations/create.vocabularies.yml
+++ b/translations/create.vocabularies.yml
@@ -9,6 +9,10 @@ questions:
name-words: 'Enter the maximum number of words in vocabulary names'
messages:
vocabulary-id: 'Vocabulary Id'
- name: 'Name'
+ name: Name
created-terms: 'Created "%s" vocabularies successfully'
error: 'Error creating vocabularies: "%s"'
+examples:
+ -
+ description: 'Provide the number of vocabularies to create and maximum number of words in vocabulary names'
+ execution: "drupal create:vocabularies \\\n --limit=\"5\" \\\n --name-words=\"5\"\n"
diff --git a/translations/cron.execute.yml b/translations/cron.execute.yml
index d5869ba..338ee68 100644
--- a/translations/cron.execute.yml
+++ b/translations/cron.execute.yml
@@ -4,3 +4,10 @@ messages:
executing-cron: 'Executing cron function of module "%s"'
success: 'All cron implementations requested were executed successfully'
lock: 'Attempting to re-run cron while it is already running'
+examples:
+ -
+ description: 'Execute the cron globally'
+ execution: "drupal cron:execute\n"
+ -
+ description: 'Execute the cron on the specified module'
+ execution: "drupal cron:execute \\\n \n"
diff --git a/translations/cron.release.yml b/translations/cron.release.yml
index a4aa813..ff3a2d3 100644
--- a/translations/cron.release.yml
+++ b/translations/cron.release.yml
@@ -1,3 +1,7 @@
description: 'Release cron system lock to run cron again'
messages:
released: 'Cron lock was released successfully'
+examples:
+ -
+ description: 'Execute the cron globally'
+ execution: "drupal cron:execute\n"
diff --git a/translations/database.add.yml b/translations/database.add.yml
index 27efc19..6a33bd2 100644
--- a/translations/database.add.yml
+++ b/translations/database.add.yml
@@ -1,18 +1,22 @@
description: 'Add a database to settings.php'
options:
- database: 'The database name'
- username: 'The database username'
- password: 'The database password'
- prefix: 'The database prefix'
- host: 'The database host address'
- port: 'The database host port'
- driver: 'The database driver'
+ database: 'The database name'
+ username: 'The database username'
+ password: 'The database password'
+ prefix: 'The database prefix'
+ host: 'The database host address'
+ port: 'The database host port'
+ driver: 'The database driver'
questions:
- database: 'Enter the database name'
- username: 'Enter the username to access the database'
- password: 'Enter password for the database user'
- prefix: 'Enter the database prefix'
- host: 'Enter the database host address'
- port: 'Enter the database host port'
- driver: 'Enter the database driver'
-error: 'Could not write the site settings file. Either run this command as sudo or temporarily change permissions to allow write access to settings.php.'
\ No newline at end of file
+ database: 'Enter the database name'
+ username: 'Enter the username to access the database'
+ password: 'Enter password for the database user'
+ prefix: 'Enter the database prefix'
+ host: 'Enter the database host address'
+ port: 'Enter the database host port'
+ driver: 'Enter the database driver'
+error: 'Could not write the site settings file. Either run this command as sudo or temporarily change permissions to allow write access to settings.php.'
+examples:
+ -
+ description: 'Add a database to the settings.php'
+ execution: "drupal database:add \\\n --database=DATABASE \\\n --username=USERNAME \\\n --password=PASSWORD\n"
diff --git a/translations/database.client.yml b/translations/database.client.yml
index 50846f5..6eb385d 100644
--- a/translations/database.client.yml
+++ b/translations/database.client.yml
@@ -1,5 +1,10 @@
-description: "Launch a DB client if it's available"
+description: 'Launch a DB client if it''s available'
arguments:
- database: "Database key from settings.php"
+ database: 'Database key from settings.php'
+ target: 'Database target from settings.php'
messages:
connection: 'Connection: "%s"'
+examples:
+ -
+ description: 'Launch the default client or could launch another regarding the specification on the argument'
+ execution: "drupal database:client \n"
diff --git a/translations/database.connect.yml b/translations/database.connect.yml
index 4159a15..ca35442 100644
--- a/translations/database.connect.yml
+++ b/translations/database.connect.yml
@@ -1,8 +1,14 @@
-description: "Shows DB connection"
+description: 'Shows DB connection'
arguments:
- database: "Database key from settings.php"
+ key: 'Database key from settings.php'
+ target: 'Database target from settings.php'
+ database: 'Database key from settings.php'
messages:
database-not-found: 'Database "%s" connection 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 with key and target, or if no arguments default key and default target will be passed'
+ execution: "drupal database:connect \\\n \n"
diff --git a/translations/database.drop.yml b/translations/database.drop.yml
index 05f4c64..35b677d 100644
--- a/translations/database.drop.yml
+++ b/translations/database.drop.yml
@@ -1,9 +1,14 @@
-description: "Drop all tables in a given database."
+description: 'Drop all tables in a given database.'
help: 'The database:drop command helps you drop database tables.'
arguments:
- database: "Database key from settings.php"
+ 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:
- table: 'Table'
+ table: Table
table-drop: 'Drop "%s" tables successfully'
+examples:
+ -
+ description: 'Drop the tables on the database specified on the argument'
+ execution: "drupal database:drop \\\n \n"
diff --git a/translations/database.dump.yml b/translations/database.dump.yml
index dffee21..e90f252 100644
--- a/translations/database.dump.yml
+++ b/translations/database.dump.yml
@@ -1,8 +1,17 @@
-description: "Dump structure and contents of a database"
+description: 'Dump structure and contents of a database'
arguments:
- database: "Database key from settings.php"
+ database: 'Database key from settings.php'
+ target: 'Database target from settings.php'
options:
- file: 'The filename for your database backup'
- gz: 'Pass this option if you want the sql result file gzipped'
+ file: 'The filename for your database backup'
+ gz: 'Pass this option if you want the sql result file gzipped'
+ exclude-cache: 'Pass this option if you want to exclude cache tables.'
messages:
- success: "Database exported to:"
+ success: 'Database exported to:'
+examples:
+ -
+ description: 'Dump default database or the one specified on the argument'
+ execution: "drupal database:dump \\\n \n"
+ -
+ description: 'Dump in gz compressed format'
+ execution: "drupal database:dump \\\n --gz"
diff --git a/translations/database.log.clear.yml b/translations/database.log.clear.yml
index 29a4ac6..ebb1106 100644
--- a/translations/database.log.clear.yml
+++ b/translations/database.log.clear.yml
@@ -9,3 +9,10 @@ messages:
event-deleted: 'Event "%s" was deleted'
clear-error: 'Clear process fail, please check used filters'
clear-sucess: 'Clear of events was successfully'
+examples:
+ -
+ description: 'Clear the database log from DBLog table'
+ execution: "drupal database:log:clear \\\n \n"
+ -
+ description: 'Clear the database log from DBLog table using filters'
+ execution: "drupal database:log:clear \\\n \\\n --type=TYPE \\\n --severity=SEVERITY"
diff --git a/translations/database.log.common.yml b/translations/database.log.common.yml
index 93ca8c9..46aca72 100644
--- a/translations/database.log.common.yml
+++ b/translations/database.log.common.yml
@@ -10,3 +10,4 @@ messages:
user: User
severity: Severity
invalid-severity: 'Severity type is invalid, filter was ignored'
+ user-deleted: 'User has been deleted'
diff --git a/translations/database.log.poll.yml b/translations/database.log.poll.yml
index a5b14a5..d9185b6 100644
--- a/translations/database.log.poll.yml
+++ b/translations/database.log.poll.yml
@@ -2,8 +2,8 @@ description: 'Poll the watchdog and print new log entries every x seconds'
arguments:
duration: 'Duration in seconds which to sleep between database reads'
messages:
- warning: |
- Do not use in production environments
- As this script blocks you are advised to only run it on vm's with multiple cores for performance reasons
- Stop this polling mechanism before you clean/truncate the watchdog table!
- Quit with ^C
\ No newline at end of file
+ warning: "Do not use in production environments\nAs this script blocks you are advised to only run it on vm's with multiple cores for performance reasons\nStop this polling mechanism before you clean/truncate the watchdog table!\nQuit with ^C\n"
+examples:
+ -
+ description: 'Print the log entries on screen every x seconds'
+ execution: "drupal database:log:poll \\\n 100\n"
diff --git a/translations/database.query.yml b/translations/database.query.yml
index 2b7cad6..273b067 100644
--- a/translations/database.query.yml
+++ b/translations/database.query.yml
@@ -1,15 +1,20 @@
-description: "Executes a SQL statement directly as argument"
+description: 'Executes a SQL statement directly as argument'
arguments:
- query: "The SQL statement to execute"
- database: "Database key from settings.php"
+ query: 'The SQL statement to execute'
+ database: 'Database key from settings.php'
+ target: 'Database target from settings.php'
options:
- quick: "Do not cache each query result, print each row as it is received"
- debug: "Prints debugging information and memory and CPU usage statistics when the program exits"
- html: "Produce HTML output"
- xml: "Produce XML output"
- raw: "Special characters are not escaped in the output."
- vertical: "Print query output rows vertically"
- batch: "Print results using tab as the column separator, with each row on a new line. With this option, mysql does not use the history file"
+ quick: 'Do not cache each query result, print each row as it is received'
+ debug: 'Prints debugging information and memory and CPU usage statistics when the program exits'
+ html: 'Produce HTML output'
+ xml: 'Produce XML output'
+ raw: 'Special characters are not escaped in the output.'
+ vertical: 'Print query output rows vertically'
+ batch: 'Print results using tab as the column separator, with each row on a new line. With this option, mysql does not use the history file'
messages:
connection: 'Connection: "%s"'
help: 'First argument should be the SQL statement. Second argument could be the name of the affected database.'
+examples:
+ -
+ description: 'Send a database query'
+ execution: "drupal database:query 'select * from node limit 0,1'\n"
diff --git a/translations/database.restore.yml b/translations/database.restore.yml
index aa7ae94..2d8ad83 100644
--- a/translations/database.restore.yml
+++ b/translations/database.restore.yml
@@ -1,9 +1,14 @@
-description: "Restore structure and contents of a database."
+description: 'Restore structure and contents of a database.'
arguments:
- database: "Database key from settings.php"
+ database: 'Database key from settings.php'
+ target: 'Database target from settings.php'
options:
- file: 'The filename for your database backup file'
+ file: 'The filename for your database backup file'
messages:
- success: "Database imported from:"
- no-file: "Missing file option"
-help: "Restore structure and contents of a database."
\ No newline at end of file
+ success: 'Database imported from:'
+ no-file: 'Missing file option'
+help: 'Restore structure and contents of a database.'
+examples:
+ -
+ description: 'Restore the database file dump to the database default or another one specified'
+ execution: "drupal database:restore \\\n --file='/srv/dump/db.sql'\n"
diff --git a/translations/debug.breakpoints.yml b/translations/debug.breakpoints.yml
new file mode 100644
index 0000000..e88c54f
--- /dev/null
+++ b/translations/debug.breakpoints.yml
@@ -0,0 +1,12 @@
+description: 'Displays breakpoints available in application'
+options:
+ group-name: 'Enter Breakpoint Group Name'
+messages:
+ name: 'Extensions with breakpoints'
+examples:
+ - description: 'Provide a group name.'
+ execution: drupal debug:breakpoints bartik
+examples:
+ - description: 'Displays the breakpoints available on the site'
+ execution: |
+ drupal debug:breakpoints
diff --git a/translations/debug.cache.context.yml b/translations/debug.cache.context.yml
new file mode 100644
index 0000000..be9ec82
--- /dev/null
+++ b/translations/debug.cache.context.yml
@@ -0,0 +1,9 @@
+description: 'Displays current cache context for the application.'
+messages:
+ code: 'Context ID'
+ label: 'Label'
+ class: 'Class path'
+examples:
+ - description: 'Displays cache context'
+ execution: |
+ drupal debug:cache:context
diff --git a/translations/debug.chain.yml b/translations/debug.chain.yml
new file mode 100644
index 0000000..a74e31d
--- /dev/null
+++ b/translations/debug.chain.yml
@@ -0,0 +1,6 @@
+description: 'List available chain files.'
+messages:
+ directory: 'Directory'
+ file: 'File name.'
+ command: 'Command name.'
+ no-files: 'No chain files found.'
diff --git a/translations/debug.config.settings.yml b/translations/debug.config.settings.yml
new file mode 100644
index 0000000..34087fb
--- /dev/null
+++ b/translations/debug.config.settings.yml
@@ -0,0 +1,9 @@
+description: 'Displays current key:value on settings file.'
+help: 'The debug:config:settings command helps you displaying current key:value on settings file.'
+welcome: 'Welcome to the Drupal Config Settings Debug command'
+messages:
+ current: 'Current Key:value on settings file'
+examples:
+ - description: 'Displays key:value as per the settings file'
+ execution: |
+ drupal debug:config:settings
diff --git a/translations/debug.config.validate.yml b/translations/debug.config.validate.yml
new file mode 100644
index 0000000..e6d78eb
--- /dev/null
+++ b/translations/debug.config.validate.yml
@@ -0,0 +1,14 @@
+description: 'Validate a schema implementation before a module is installed.'
+help: 'Helper function to validate a schema implementation before a module is installed. Specify the config and the schema file paths as arguments and validation will be run against them, making schema easier to debug without time consuming installs'
+options: {}
+arguments: {}
+messages:
+ noConfFile: 'Config file at the specified path does not exist'
+ noConfSchema: 'Config schema at the specified path does not exist'
+ noSchemaName: 'Could not find schema definition in schema file. Using definition name:'
+examples:
+ - description: 'Validates a schema'
+ execution: |
+ drupal debug:config:validate \
+ /path/to/file \
+ /path/to/schema-filepath
diff --git a/translations/debug.config.yml b/translations/debug.config.yml
new file mode 100644
index 0000000..d471355
--- /dev/null
+++ b/translations/debug.config.yml
@@ -0,0 +1,17 @@
+description: 'List configuration objects names and single configuration object.'
+arguments:
+ name: 'Configuration object name, for example "system.site".'
+options:
+ show-overridden: 'Show overridden configurations.'
+errors:
+ not-exists: 'The configuration "%s" does not exist.'
+
+examples:
+ - description: 'List all configuration object names.'
+ execution: 'drupal debug:config'
+ - description: 'Display system site configurations values.'
+ execution: 'drupal debug:config system.site'
+ - description: 'List all system configuration names.'
+ execution: 'drupal debug:config | grep system'
+ - description: 'List all configuration including overridden values.'
+ execution: 'drupal debug:config --show-overridden'
diff --git a/translations/debug.container.yml b/translations/debug.container.yml
new file mode 100644
index 0000000..9a2e740
--- /dev/null
+++ b/translations/debug.container.yml
@@ -0,0 +1,25 @@
+description: 'Displays current services for an application.'
+arguments:
+ service: 'Service name.'
+ method: 'Method name.'
+ arguments: 'Array of Arguments in CSV or JSON format.'
+options:
+ tag: 'Service tag '
+messages:
+ service-id: 'Service ID'
+ class-name: 'Class Name'
+ service: 'Service'
+ class: 'Class'
+ interface: 'Interface(s)'
+ parent: 'Parent class'
+ variables: 'Variables'
+ methods: 'Methods'
+ arguments: 'Arguments'
+ method: 'Method'
+ return: 'Return'
+errors:
+ method-not-exists: 'This method doesn''t exists in this service.'
+examples:
+ - description: 'Displays the views.views_data_helper services'
+ execution: |
+ drupal debug:container views.views_data_helper
diff --git a/translations/debug.cron.yml b/translations/debug.cron.yml
new file mode 100644
index 0000000..cf931e6
--- /dev/null
+++ b/translations/debug.cron.yml
@@ -0,0 +1,8 @@
+description: 'List of modules implementing a cron'
+messages:
+ module-list: 'Modules implementing a cron method'
+ module: Module
+examples:
+ - description: 'This will show a list with modules implementing the cron hook'
+ execution: |
+ drupal debug:cron
diff --git a/translations/debug.database.log.yml b/translations/debug.database.log.yml
new file mode 100644
index 0000000..fb23aaf
--- /dev/null
+++ b/translations/debug.database.log.yml
@@ -0,0 +1,17 @@
+description: 'Displays current log events for the application'
+arguments:
+ event-id: 'DBLog event ID'
+options:
+ asc: 'List events in ascending order'
+ limit: 'Limit results to a specific number'
+ offset: 'Starting point of a limit'
+ yml: 'Print in a yml style'
+messages:
+ not-found: 'DBLog event "%s" wasn''t found'
+examples:
+ - description: 'List all the entries on the log'
+ execution: |
+ drupal debug:database:log
+ - description: 'List specific log entry by Event ID'
+ execution: |
+ drupal debug:database:log 21228
diff --git a/translations/debug.database.table.yml b/translations/debug.database.table.yml
new file mode 100644
index 0000000..8258c29
--- /dev/null
+++ b/translations/debug.database.table.yml
@@ -0,0 +1,18 @@
+description: 'Show all tables in a given database.'
+help: 'The debug:database:table command helps you debug database tables.'
+arguments:
+ table: 'Table to debug'
+options:
+ database: 'Database key from settings.php'
+messages:
+ table-show: 'Showing tables for "%s" database'
+ table: 'Table'
+ column: 'Column'
+ type: 'Type'
+examples:
+ - description: 'Show all tables in a database'
+ execution: |
+ drupal debug:database:table
+ - description: 'Show fields in the node table or another specified in the argument'
+ execution: |
+ drupal debug:database:table node
diff --git a/translations/debug.entity.yml b/translations/debug.entity.yml
new file mode 100644
index 0000000..f217073
--- /dev/null
+++ b/translations/debug.entity.yml
@@ -0,0 +1,12 @@
+description: 'Debug entities available in the system'
+help: 'The debug:entity command helps get a list of entities.'
+arguments:
+questions:
+messages:
+table-headers:
+ entity-name: 'Entity name'
+ entity-type: 'Entity type'
+examples:
+ - description: 'Displays the available entities'
+ execution: |
+ drupal debug:entity
diff --git a/translations/debug.event.yml b/translations/debug.event.yml
new file mode 100644
index 0000000..e3ff5b4
--- /dev/null
+++ b/translations/debug.event.yml
@@ -0,0 +1,16 @@
+description: 'Displays current events '
+help: 'The debug:event command helps you debug events.'
+arguments:
+ event: 'Event to debug'
+messages:
+ event: Event Name
+ class: 'Class'
+ method: 'Method'
+ no-events: 'This event does not exist, try to execute command: debug:event'
+examples:
+ - description: 'List all the events that could be debugged'
+ execution: |
+ drupal debug:event
+ - description: 'Show the information for the kernel.request event'
+ execution: |
+ drupal debug:event kernel.request
diff --git a/translations/debug.features.yml b/translations/debug.features.yml
new file mode 100644
index 0000000..5ef07c5
--- /dev/null
+++ b/translations/debug.features.yml
@@ -0,0 +1,11 @@
+description: 'List registered features.'
+help: 'List registered features.'
+arguments:
+ bundle: 'Bundle name'
+messages:
+ bundle: 'Bundle'
+ name: 'Name'
+ machine-name: 'Machine Name'
+ status: 'Status'
+ state: 'State'
+
diff --git a/translations/debug.image.styles.yml b/translations/debug.image.styles.yml
new file mode 100644
index 0000000..0aff919
--- /dev/null
+++ b/translations/debug.image.styles.yml
@@ -0,0 +1,9 @@
+description: 'List image styles on the site'
+messages:
+ styles-list: 'Image Styles defined in the site'
+ styles-label: 'Label'
+ styles-name: 'Machine Name'
+examples:
+ - description: 'List all images styles on the site'
+ execution: |
+ drupal debug:image:styles
diff --git a/translations/debug.libraries.yml b/translations/debug.libraries.yml
new file mode 100644
index 0000000..c431b65
--- /dev/null
+++ b/translations/debug.libraries.yml
@@ -0,0 +1,17 @@
+description: 'Displays libraries available in application'
+options:
+ name: 'Extension or Library Name'
+messages:
+ extension: 'Extension'
+ library: 'Library'
+ info: 'Library Information'
+examples:
+ - description: 'List all extensions with libraries'
+ execution: |
+ drupal debug:libraries
+ - description: 'List block extension libraries'
+ execution: |
+ drupal debug:libraries block
+ - description: 'List block/drupal.block library'
+ execution: |
+ drupal debug:libraries block/drupal.block
diff --git a/translations/debug.migrate.yml b/translations/debug.migrate.yml
new file mode 100644
index 0000000..779730f
--- /dev/null
+++ b/translations/debug.migrate.yml
@@ -0,0 +1,12 @@
+description: 'Display current migration available for the application'
+arguments:
+ tag: 'Migrate tag'
+messages:
+ id: 'Migration Id'
+ description: Description
+ no-migrations: 'There aren''t migrations available try to execute command: migrate:setup:migrations'
+ tags: Tags
+examples:
+ - description: 'Displays current migration'
+ execution: |
+ drupal debug:migrate
diff --git a/translations/debug.module.yml b/translations/debug.module.yml
new file mode 100644
index 0000000..034d88a
--- /dev/null
+++ b/translations/debug.module.yml
@@ -0,0 +1,24 @@
+description: 'Displays current modules available for application'
+module: 'Module name'
+options:
+ status: 'Module status [installed|uninstalled]'
+ type: 'Module type [core|no-core]'
+messages:
+ id: ID
+ name: Name
+ status: Status
+ origin: Origin
+ package: Package
+ installed: Installed
+ uninstalled: Uninstalled
+ version: Version
+ schema-version: 'Schema version'
+ total-downloads: 'Total installs'
+ total-monthly: 'Monthly installs'
+ total-daily: 'Daily installs'
+ no-results: 'Module "%s" was not found in the repository'
+examples:
+ - description: 'Display all installed modules'
+ execution: 'drupal mod --status=installed'
+ - description: 'Display all installed and no core modules'
+ execution: 'drupal mod --status=installed --type=no-core'
diff --git a/translations/debug.multisite.yml b/translations/debug.multisite.yml
new file mode 100644
index 0000000..4e1fbb4
--- /dev/null
+++ b/translations/debug.multisite.yml
@@ -0,0 +1,11 @@
+description: 'List all multi-sites available in system'
+help: 'The debug:multisite list all known multi-sites.'
+messages:
+ no-multisites: 'No multi-sites configured'
+ site: 'Site'
+ directory: 'Directory'
+ site-format: 'Sites are written using the format: ..'
+examples:
+ - description: 'Displays multi-site information'
+ execution: |
+ drupal debug:multisite
diff --git a/translations/debug.permission.yml b/translations/debug.permission.yml
new file mode 100644
index 0000000..aade16b
--- /dev/null
+++ b/translations/debug.permission.yml
@@ -0,0 +1,22 @@
+description: 'Displays all user permissions.'
+help: |
+ Display all user permissions and also list all user permissions from a specific user role.
+
+ List all user permissions:
+ drupal debug:permission
+
+ List all user permissions from a user role
+ drupal debug:permission authenticated
+
+arguments:
+ role: 'User role'
+messages:
+ role-error: 'Role "%s" does not exist. Please use an existing user role.'
+table-headers:
+ permission-name: 'Permission name'
+ permission-label: 'Permission Label'
+ permission-role: 'Role'
+examples:
+ - description: 'Displays all the permissions availables on the site'
+ execution: |
+ drupal debug:permission
diff --git a/translations/debug.plugin.yml b/translations/debug.plugin.yml
new file mode 100644
index 0000000..8553725
--- /dev/null
+++ b/translations/debug.plugin.yml
@@ -0,0 +1,39 @@
+description: 'Displays all plugin types.'
+help: |
+ Display all plugin types, plugin instances of a specific type, or the definition for a specific plugin.
+
+ List all plugin types:
+ drupal debug:plugin
+
+ List all instances of the image effect plugin type:
+ drupal debug:plugin image.effect
+
+ Show the definition for the image convert plugin:
+ drupal debug:plugin image.effect image_convert
+
+ NOTE: Only plugin types exposed through services are supported. When developing a custom plugin type, expose it as a service by adding it to modulename.services.yml with the name "plugin.manager.PLUGIN_TYPE".
+arguments:
+ type: 'Plugin type'
+ id: 'Plugin ID'
+errors:
+ plugin-type-not-found: 'Plugin type "%s" not found. No service available for that type.'
+messages:
+ plugin-info: 'Plugin additional information'
+table-headers:
+ plugin-type-name: 'Plugin type'
+ plugin-type-class: 'Plugin manager class'
+ plugin-id: 'Plugin ID'
+ plugin-class: 'Plugin class'
+ definition-key: 'Key'
+ definition-value: 'Value'
+ setting: 'Setting'
+examples:
+ - description: 'Displays a list with all the plugins on the current site'
+ execution: |
+ drupal debug:plugin
+ - description: 'Displays block plugin information'
+ execution: |
+ drupal debug:plugin block
+ - description: 'Displays block broken information'
+ execution: |
+ drupal debug:plugin block broken
diff --git a/translations/debug.queue.yml b/translations/debug.queue.yml
new file mode 100644
index 0000000..667e352
--- /dev/null
+++ b/translations/debug.queue.yml
@@ -0,0 +1,9 @@
+description: 'Displays the queues of your application'
+messages:
+ queue: 'Queue'
+ items: 'Items'
+ class: 'Class'
+examples:
+ - description: 'Displays the queues of the application'
+ execution: |
+ drupal debug:queue
diff --git a/translations/debug.rest.yml b/translations/debug.rest.yml
new file mode 100644
index 0000000..6c6f101
--- /dev/null
+++ b/translations/debug.rest.yml
@@ -0,0 +1,21 @@
+description: 'Display current rest resource for the application'
+arguments:
+ resource-id: 'Rest ID'
+options:
+ status: 'Rest resource status enabled | disabled'
+messages:
+ id: 'Rest ID'
+ label: Label
+ canonical-url: 'Canonical URL'
+ status: Status
+ provider: Provider
+ enabled: Enabled
+ disabled: Disabled
+ rest-state: 'REST States'
+ supported-formats: 'Supported Formats'
+ supported-auth: 'Supported Authentication Providers'
+ not-found: 'Rest resource "%s" not found'
+examples:
+ - description: 'Displays rest hooks'
+ execution: |
+ drupal debug:rest
diff --git a/translations/debug.roles.yml b/translations/debug.roles.yml
new file mode 100644
index 0000000..b1bb15a
--- /dev/null
+++ b/translations/debug.roles.yml
@@ -0,0 +1,10 @@
+description: 'Displays current roles for the application'
+help: 'The debug:roles command helps you get current roles.'
+welcome: 'Welcome to the Drupal roles debug'
+messages:
+ role-id: 'Role ID'
+ role-name: 'Role Name'
+examples:
+ - description: 'Roles list on the site'
+ execution: |
+ drupal debug:roles
diff --git a/translations/debug.router.yml b/translations/debug.router.yml
new file mode 100644
index 0000000..3488391
--- /dev/null
+++ b/translations/debug.router.yml
@@ -0,0 +1,27 @@
+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'
+ route: Route
+ path: Path
+ defaults: Defaults
+ requirements: Requirements
+ options: Options
+examples:
+ - description: 'Displays current routes for the application'
+ execution: 'drupal rod'
+ - description: 'Displays details for the route user.page (/user)'
+ execution: 'drupal rod user.page'
+ - 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
+ - description: 'Display information for the routes by pattern (/user/login)'
+ execution: |
+ drupal debug:router --pattern=/user/login
\ No newline at end of file
diff --git a/translations/debug.settings.yml b/translations/debug.settings.yml
new file mode 100644
index 0000000..725bf0f
--- /dev/null
+++ b/translations/debug.settings.yml
@@ -0,0 +1,9 @@
+description: 'List user Drupal Console settings.'
+messages:
+ config-key: 'Config key'
+ config-value: 'Config value'
+ config-file: 'Config file'
+examples:
+ - description: 'List user Drupal Console settings.'
+ execution: |
+ drupal debug:settings
diff --git a/translations/debug.site.yml b/translations/debug.site.yml
new file mode 100644
index 0000000..e7f37b8
--- /dev/null
+++ b/translations/debug.site.yml
@@ -0,0 +1,20 @@
+description: 'List all known local and remote sites.'
+help: 'The debug:site list all known local and remote sites.'
+messages:
+ site: 'Site'
+ host: 'Host'
+ root: 'Root'
+ invalid-sites: 'No sites defined.'
+ invalid-sites-using: |
+ Using a site alias requires local configuration, more info at:
+ https://docs.drupalconsole.com/en/alias/using-site-alias.html
+ invalid-site: 'Invalid site name'
+ private-key: 'Error with private key'
+ connect-error: 'Error connecting to remote machine'
+options:
+ target: 'Target'
+ property: 'Property'
+examples:
+ - description: 'List all known local and remote sites.'
+ execution: |
+ drupal debug:site
diff --git a/translations/debug.state.yml b/translations/debug.state.yml
new file mode 100644
index 0000000..9d995a2
--- /dev/null
+++ b/translations/debug.state.yml
@@ -0,0 +1,13 @@
+description: 'Show the current State keys.'
+help: 'Show the current State keys.'
+arguments:
+ key: 'The State key to debug.'
+messages:
+ key: 'The State key'
+examples:
+ - description: 'List of the states on the site'
+ execution: |
+ drupal debug:state
+ - description: 'Displays a detail of the state install_task tok from the list of states'
+ execution: |
+ drupal debug:state install_task
diff --git a/translations/debug.test.yml b/translations/debug.test.yml
new file mode 100644
index 0000000..3299674
--- /dev/null
+++ b/translations/debug.test.yml
@@ -0,0 +1,20 @@
+description: 'List Test Units available for the application.'
+help: 'List Test Units available for the application.'
+arguments:
+ test-class: 'Test Class'
+options:
+ group: Group
+messages:
+ class: 'Test Class'
+ description: Description
+ group: Group
+ type: 'Test Type'
+ missing-dependency: 'Missing dependency'
+ methods: 'Test methods'
+ not-found: 'Debug wasn''t found, try enclosure test id between double quotes.'
+ success-groups: 'All testing groups were listed sucessfully, use the group argument to filter Test unit by group i.e $ drupal debug:test Url'
+ success-group: 'All test units for group "%s" were listed sucessfully'
+examples:
+ - description: ''
+ execution: |
+ drupal debug:test
diff --git a/translations/debug.theme.keys.yml b/translations/debug.theme.keys.yml
new file mode 100644
index 0000000..976ce00
--- /dev/null
+++ b/translations/debug.theme.keys.yml
@@ -0,0 +1,22 @@
+description: 'Displays all theme keys provided by hook_theme functions'
+help: |
+ Display all theme keys, or the definition for a specific theme key.
+
+ List all theme keys:
+ drupal debug:theme:keys
+
+ Show the definition for the item_list theme key:
+ drupal debug:theme:keys item_list
+arguments:
+ key: 'Key'
+table-headers:
+ key: 'Key'
+ provider-type: 'Provider type'
+ provider: 'Provider'
+ value: 'Value'
+provider-types:
+ module: 'Module'
+ base-theme-engine: 'Base theme engine'
+ base-theme: 'Base theme'
+ theme-engine: 'Theme engine'
+ theme: 'Theme'
diff --git a/translations/debug.theme.yml b/translations/debug.theme.yml
new file mode 100644
index 0000000..fac0258
--- /dev/null
+++ b/translations/debug.theme.yml
@@ -0,0 +1,22 @@
+description: 'Displays current themes for the application'
+arguments:
+ theme: 'Specific theme to debug'
+messages:
+ theme-id: 'Id'
+ theme-name: 'Name'
+ status: 'Status'
+ version: 'Version'
+ installed: 'Installed'
+ uninstalled: 'Uninstalled'
+ default-theme: 'Default theme'
+ properties: 'Properties'
+ regions: 'Regions'
+ invalid-theme: 'Theme "%s" is invalid'
+ theme-properties: 'Properties'
+examples:
+ - description: 'List of themes on the site'
+ execution: |
+ drupal debug:theme
+ - description: 'Bartik theme information'
+ execution: |
+ drupal debug:theme bartik
\ No newline at end of file
diff --git a/translations/debug.update.composer.yml b/translations/debug.update.composer.yml
new file mode 100644
index 0000000..21ad30d
--- /dev/null
+++ b/translations/debug.update.composer.yml
@@ -0,0 +1,15 @@
+description: 'Displays current updates available from the composer file'
+options:
+ only-drupal: Show only drupal (modules/themes) updates
+messages:
+ description: 'Description'
+ current-version: 'Version'
+ latest-version: 'Latest'
+ name: 'Name'
+ composer-list: 'Composer with pending updates'
+examples:
+ - description: 'List of pending updates from composer'
+ execution: |
+ drupal debug:update:composer
+
+
diff --git a/translations/debug.update.yml b/translations/debug.update.yml
new file mode 100644
index 0000000..9ed7fc7
--- /dev/null
+++ b/translations/debug.update.yml
@@ -0,0 +1,17 @@
+description: 'Displays current updates available for the application'
+messages:
+ no-updates: 'No pending updates'
+ severity: 'Severity'
+ title: 'Title'
+ value: 'Value'
+ description: 'Description'
+ requirements-error: 'The following requirement weren''t completed'
+ module-list: 'Modules with pending updates'
+ module-list-post-update: 'Modules with pending post updates'
+ module: 'Module'
+ update-n: 'Update N'
+ post-update: 'Post update function'
+examples:
+ - description: 'List of pending updates'
+ execution: |
+ drupal debug:update
diff --git a/translations/debug.user.yml b/translations/debug.user.yml
new file mode 100644
index 0000000..29cb406
--- /dev/null
+++ b/translations/debug.user.yml
@@ -0,0 +1,21 @@
+description: 'Displays current users for the application'
+help: 'The debug:user command helps you get current users.'
+welcome: 'Welcome to the Drupal user debug'
+options:
+ roles: 'Roles to filter debug'
+ limit: 'How many users would you like to be listed in debug'
+ uid: 'Filters the result list by uids [between quotes separated by spaces]'
+ username: 'Filters the result list by user-names [between quotes separated by spaces]'
+ mail: 'Filters the result list by user''s e-mail [between quotes separated by spaces]'
+questions:
+ roles: 'Select role(s) to be used to filter user debug list'
+ limit: 'Enter how many users would you like to show'
+messages:
+ user-id: 'User ID'
+ username: 'Username'
+ roles: 'Roles'
+ status: 'Status'
+examples:
+ - description: 'Users list on the site'
+ execution: |
+ drupal debug:user
diff --git a/translations/debug.views.plugins.yml b/translations/debug.views.plugins.yml
new file mode 100644
index 0000000..b3b9b42
--- /dev/null
+++ b/translations/debug.views.plugins.yml
@@ -0,0 +1,12 @@
+description: 'Displays current views plugins for the application'
+arguments:
+ type: 'Filter views plugins by type'
+messages:
+ type: 'Type'
+ name: 'Name'
+ provider: 'Provider'
+ views: 'Views'
+examples:
+ - description: 'List of views plugins'
+ execution: |
+ drupal debug:views:plugins
diff --git a/translations/debug.views.yml b/translations/debug.views.yml
new file mode 100644
index 0000000..91b877e
--- /dev/null
+++ b/translations/debug.views.yml
@@ -0,0 +1,22 @@
+description: 'Displays current views resources for the application'
+arguments:
+ view-id: 'View ID'
+ view-tag: 'View tag'
+ view-status: 'View status (Enabled|Disabled)'
+messages:
+ view-id: 'View ID'
+ view-name: 'View name'
+ description: Description
+ tag: Tag
+ status: Status
+ path: Path
+ not-found: 'View "%s" wasn''t found.'
+ display-list: 'Display list'
+ display-id: ID
+ display-name: Name
+ display-description: Description
+ display-paths: Paths
+examples:
+ - description: 'List of views on the site'
+ execution: |
+ drupal debug:views
diff --git a/translations/devel.dumper.yml b/translations/devel.dumper.yml
new file mode 100644
index 0000000..e27a518
--- /dev/null
+++ b/translations/devel.dumper.yml
@@ -0,0 +1,7 @@
+messages:
+ change-devel-dumper-plugin: 'Change the devel dumper plugin'
+ name-devel-dumper-plugin: 'Name of the devel dumper plugin'
+ devel-must-be-installed: 'Devel must be installed'
+ select-debug-dumper: 'Select a Debug Dumper'
+ dumper-not-exist: 'Dumper does not exist'
+ devel-dumper-set: 'Devel Dumper set to: "%s"'
diff --git a/translations/docker.init.yml b/translations/docker.init.yml
new file mode 100644
index 0000000..95f79c0
--- /dev/null
+++ b/translations/docker.init.yml
@@ -0,0 +1 @@
+description: 'Create a docker-compose.yml file'
diff --git a/translations/dotenv.init.yml b/translations/dotenv.init.yml
new file mode 100644
index 0000000..deec7ee
--- /dev/null
+++ b/translations/dotenv.init.yml
@@ -0,0 +1,38 @@
+description: 'Add support and required config to work with an .env file'
+messages:
+ template-env: |
+ This file is a "template" of which env vars need to be defined
+ for your application, use only on development stages.
+ Create real environment variables when deploying to production.
+ load-from-env: |
+ If not using real environment variables.
+ Make sure you add the dependency using composer
+
+ Drupal 8.5 and up versions `composer require symfony/dotenv`
+ if (file_exists(dirname(DRUPAL_ROOT) . '/.env')) {
+ $dotenv = new \Symfony\Component\Dotenv\Dotenv(dirname(DRUPAL_ROOT));
+ $dotenv->load();
+ }
+
+ Drupal 8.4 and minor versions `composer require vlucas/phpdotenv`
+ if (file_exists(dirname(DRUPAL_ROOT) . '/.env')) {
+ $dotenv = new \Dotenv\Dotenv(dirname(DRUPAL_ROOT));
+ $dotenv->load();
+ }
+ load-settings: |
+ # Load key/value settings
+ $settings_drupal = array_filter(
+ $_SERVER,
+ function($key) {
+ return strpos($key, 'SETTINGS_') === 0;
+ },
+ ARRAY_FILTER_USE_KEY
+ );
+
+ # Set key/value settings
+ foreach ($settings_drupal as $name => $value) {
+ if (substr($name, 0, 9) === 'SETTINGS_') {
+ $key = strtolower(substr($name, 9));
+ $settings['settings'][$key] = $value;
+ }
+ }
diff --git a/translations/drush.yml b/translations/drush.yml
index 7a398a9..78ab236 100644
--- a/translations/drush.yml
+++ b/translations/drush.yml
@@ -1,3 +1,3 @@
description: 'Drupal Console equivalents'
messages:
- not-found: 'Drush command not found'
+ not-found: 'Drush command not found'
diff --git a/translations/entity.delete.yml b/translations/entity.delete.yml
index 2f9d68a..40f8596 100644
--- a/translations/entity.delete.yml
+++ b/translations/entity.delete.yml
@@ -1,11 +1,19 @@
description: 'Delete an specific entity'
help: 'The entity:delete command helps you delete entities.'
arguments:
- entity-definition-id: 'Entity definition id'
- entity-id: 'Entity ID to be deleted'
+ entity-definition-id: 'Entity definition id'
+ entity-id: 'Entity ID to be deleted'
+options:
+ all: 'Delete all entities of the given type.'
questions:
- entity-type: 'Enter the Entity type'
- entity-definition-id: 'Enter the Entity definitin id'
- entity-id: 'Enter the Entity ID to be deleted'
+ entity-type: 'Enter the Entity type'
+ entity-definition-id: 'Enter the Entity definitin id'
+ entity-id: 'Enter the Entity ID to be deleted'
messages:
- deleted: 'Entity %s with id %s was deleted successfully'
\ No newline at end of file
+ confirm-delete-all: 'Do you want to delete all entities of type "%s" ("%d")?'
+ deleted: 'Entity %s with id %s was deleted successfully'
+ deleted-all: 'All entities of type "%s" ("%d") were deleted.'
+examples:
+ -
+ description: 'Delete entity type content using node id'
+ execution: "drupal entity:delete node 1\n"
diff --git a/translations/exec.yml b/translations/exec.yml
index 5c3ceb2..8d9ea66 100644
--- a/translations/exec.yml
+++ b/translations/exec.yml
@@ -1,13 +1,12 @@
description: 'Execute an external command.'
arguments:
- bin: 'Executable command.'
+ bin: 'Executable command.'
options:
- working-directory: 'The current working directory.'
+ working-directory: 'The current working directory.'
messages:
- success: 'Executed the command.'
- invalid-bin: 'Error executing the command.'
- missing-bin: 'Provide an executable command.'
- binary-not-found: 'Unable to find the binary %s to execute.'
- working-directory: 'Working directory'
- executing-command: 'Executing command'
-
+ success: 'Executed the command.'
+ invalid-bin: 'Error executing the command.'
+ missing-bin: 'Provide an executable command.'
+ binary-not-found: 'Unable to find the binary %s to execute.'
+ working-directory: 'Working directory'
+ executing-command: 'Executing command'
diff --git a/translations/features.import.yml b/translations/features.import.yml
index 6104de3..ce3c5b4 100644
--- a/translations/features.import.yml
+++ b/translations/features.import.yml
@@ -1,12 +1,15 @@
description: 'Import module config.'
help: ''
options:
- bundle: 'Bundle name'
+ bundle: 'Bundle name'
arguments:
- packages: 'Package name'
+ packages: 'Package name'
questions:
- packages: 'Enter package name to import'
+ packages: 'Enter package name to import'
messages:
- no-packages: 'No packages available.'
- not-available: 'Package %s, not available.'
- importing: 'Importing package %s.'
+ no-packages: 'No packages available.'
+ not-available: 'Package %s, not available.'
+ importing: 'Importing package %s.'
+ uninstall: 'Package "%s" already installed.'
+ reverting: 'Reverting package "%s".'
+ nothing: 'Nothing to import.'
diff --git a/translations/generate.ajax.command.yml b/translations/generate.ajax.command.yml
new file mode 100644
index 0000000..3983681
--- /dev/null
+++ b/translations/generate.ajax.command.yml
@@ -0,0 +1,13 @@
+description: 'Generate & Register a custom ajax command'
+help: 'The generate:ajax:command command helps you generate a new custom ajax command.'
+welcome: 'Welcome to the Drupal Ajax generator'
+options:
+ module: 'The Module name.'
+ class: 'Ajax Class name'
+ method: 'Custom ajax method'
+ js-name: 'Custom javascript name'
+questions:
+ module: 'Enter the module name'
+ class: 'Enter the Ajax class name'
+ method: 'Enter the render method name'
+ js-name: 'Enter a custom javascript name'
\ No newline at end of file
diff --git a/translations/generate.authentication.provider.yml b/translations/generate.authentication.provider.yml
index d515ea5..6ffec22 100644
--- a/translations/generate.authentication.provider.yml
+++ b/translations/generate.authentication.provider.yml
@@ -1,6 +1,15 @@
description: 'Generate an Authentication Provider'
help: 'The generate:authentication:provider command helps you generate a new Authentication Provider.'
+welcome: 'Welcome to the Drupal Authentication Provider generator'
options:
+ module: 'The Module name.'
class: 'Authentication Provider class'
provider-id: 'Provider ID'
-module: common.options.module
+questions:
+ module: 'Enter the module name'
+ class: 'Enter the Authentication Provider class'
+ provider-id: 'Enter the Provider ID'
+examples:
+ -
+ description: 'Generate an authentication provider specifying the module, the class and the provider id'
+ execution: "drupal generate:authentication:provider \\\n --module=\"modulename\" \\\n --class=\"DefaultAuthenticationProvider\" \\\n --provider-id=\"default_authentication_provider\"\n"
diff --git a/translations/generate.breakpoint.yml b/translations/generate.breakpoint.yml
index 1905bc2..10d02a1 100644
--- a/translations/generate.breakpoint.yml
+++ b/translations/generate.breakpoint.yml
@@ -12,3 +12,7 @@ questions:
breakpoint-weight: 'Enter breakpoint weight'
breakpoint-multipliers: 'Enter breakpoint multipliers'
breakpoint-add: 'Do you want to add another breakpoint'
+examples:
+ -
+ description: 'Generate a breakpoint specifying the theme, a breakpoint name, its label, the media query, its weight and multipliers'
+ execution: "drupal generate:breakpoint \\\n --theme=\"classy\" \\\n --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.cache.context.yml b/translations/generate.cache.context.yml
index b8053f6..5ad2784 100644
--- a/translations/generate.cache.context.yml
+++ b/translations/generate.cache.context.yml
@@ -1,4 +1,15 @@
description: 'Generate a cache context'
+help: 'The generate:cache:context command helps you generates a new cache context'
+welcome: 'Welcome to the Drupal Cache Context generator'
+options:
+ module: 'The Module name.'
+ name: 'The cache context name'
+ class: 'Cache context class name'
questions:
+ module: 'Enter the module name'
name: 'Enter the cache context name'
class: 'Cache context class name'
+examples:
+ -
+ description: 'Generate cache for a context specifying the module, the context name and its class'
+ execution: "drupal generate:cache:context \\\n --module=\"modulename\" \\\n --cache-context=\"ContextName\" \\\n --class=\"DefaultCacheContext\""
diff --git a/translations/generate.command.yml b/translations/generate.command.yml
index 0b9c665..0f100af 100644
--- a/translations/generate.command.yml
+++ b/translations/generate.command.yml
@@ -2,15 +2,29 @@ description: 'Generate commands for the console.'
help: 'The generate:command command helps you generate a new command.'
welcome: 'Welcome to the Drupal Command generator'
options:
- module: 'The name of the Module (that will contain the command).'
- controller-title: 'Controller title.'
+ extension: 'The name of the Extension (that will contain the command).'
class: 'The Class that describes the command. (Must end with the word ''Command'').'
name: 'The Command name.'
+ interact: 'Add interact method.'
+ initialize: 'Add initialize method.'
container-aware: 'Is the command aware of the drupal site installation when executed'
+ services: 'Load services from the container.'
+ generator: 'Add a Generator class for this command.'
+ module: 'The name of the Module (that will contain the command).'
+ controller-title: 'Controller title.'
questions:
- module: common.questions.module
+ extension: 'Enter the extension name'
class: 'Enter the Command Class. (Must end with the word ''Command'').'
name: 'Enter the Command name.'
+ interact: 'Do you want to add the interact method?'
+ initialize: 'Do you want to add the initialize method?'
container-aware: 'Is the command aware of the drupal site installation when executed?.'
+ services: 'Enter your service'
+ generator: 'Do you want to add a Generator class?.'
+ module: common.questions.module
messages:
title-not-empty: 'Title cannot be empty'
+examples:
+ -
+ description: 'Generate a command specifying the extension name and type, its class and the name.'
+ execution: "drupal generate:command \\\n --extension=\"ExtensionName\" \\\n --extension-type=\"module\" \\\n --class=\"DefaultCommand\" \\\n --name=\"CommandName\""
diff --git a/translations/generate.composer.yml b/translations/generate.composer.yml
new file mode 100644
index 0000000..32e425f
--- /dev/null
+++ b/translations/generate.composer.yml
@@ -0,0 +1,58 @@
+description: 'Generate a composer.json file'
+help: 'The "%s" 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 enter 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 enter to skip it'
+ author-email: 'Enter author email or press enter to skip it'
+ author-homepage: 'Enter author homepage or press enter to skip it'
+ author-role: 'Enter author role or press enter 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"'
diff --git a/translations/generate.controller.yml b/translations/generate.controller.yml
index 9871669..2c4ec46 100644
--- a/translations/generate.controller.yml
+++ b/translations/generate.controller.yml
@@ -20,3 +20,7 @@ messages:
title-already-added: 'Title was already added'
method-name-already-added: 'Method name was already added'
path-already-added: 'Path was already added'
+examples:
+ -
+ description: 'Generate controller specifying the module name, the class name and its routes'
+ execution: "drupal generate:controller \\\n --module=\"modulename\" \\\n --class=\"DefaultController\" \\\n --routes='\"title\":\"ControllerMethod\", \"name\":\"modulename.default_controller_hello\", \"method\":\"hello\", \"path\":\"/modulename/hello/{name}\"' \\\n --test"
diff --git a/translations/generate.entity.bundle.yml b/translations/generate.entity.bundle.yml
index 211b421..24c44f2 100644
--- a/translations/generate.entity.bundle.yml
+++ b/translations/generate.entity.bundle.yml
@@ -11,3 +11,7 @@ questions:
bundle-title: 'Enter the human-readable name of your new content type'
message:
error-state1: placeholder
+examples:
+ -
+ description: 'Generate bundle entity specifying the module, the bundle name and its title'
+ execution: "drupal generate:entity:bundle \\\n --module=\"modulename\" \\\n --bundle-name=\"default\" \\\n --bundle-title=\"default\""
diff --git a/translations/generate.entity.config.yml b/translations/generate.entity.config.yml
index f234efe..31bcec4 100644
--- a/translations/generate.entity.config.yml
+++ b/translations/generate.entity.config.yml
@@ -1,5 +1,6 @@
description: 'Generate a new config entity'
help: ''
+welcome: 'Welcome to the Drupal Config Entity generator'
options:
module: common.options.module
entity-class: 'The config entity class'
@@ -14,3 +15,7 @@ questions:
label: 'Enter the label of your new config entity'
bundle-of: 'Name of the content entity you want this (config) entity to act as a bundle for'
base-path: 'Enter the base-path for the config entity routes'
+examples:
+ -
+ description: 'Generate config entity specifying the module, the entity class, the entity name, its path and label'
+ execution: "drupal generate:entity:config \\\n --module=\"modulename\" \\\n --entity-class=\"DefaultEntity\" \\\n --entity-name=\"default_entity\" \\\n --base-path=\"/admin/structure\" \\\n --label=\"Default entity\""
diff --git a/translations/generate.entity.content.yml b/translations/generate.entity.content.yml
index 63ed3c4..e3bd6de 100644
--- a/translations/generate.entity.content.yml
+++ b/translations/generate.entity.content.yml
@@ -1,11 +1,14 @@
description: 'Generate a new content entity'
help: ''
+welcome: 'Welcome to the Drupal Content Entity generator'
options:
module: common.options.module
entity-class: 'The content entity class'
entity-name: 'The content entity name'
label: 'The label'
has-bundles: 'Entity has bundles'
+ has-forms: 'Entity has forms'
+ has-owner: 'Entity has owner'
base-path: 'The base-path for the content entity routes'
is-translatable: 'Content entity translatable'
questions:
@@ -14,6 +17,15 @@ questions:
entity-name: 'Enter the machine name of your new content entity'
label: 'Enter the label of your new content entity'
has-bundles: 'Do you want this (content) entity to have bundles'
+ has-forms: 'Do you want this (content) entity to have forms?'
+ has-owner: 'Do you want this (content) entity to have an owner?'
base-path: 'Enter the base-path for the content entity routes'
is-translatable: 'Is your entity translatable'
revisionable: 'Is your entity revisionable'
+examples:
+ -
+ description: 'Generate a content entity specifying the module, the entity class, the entity name, its path and label'
+ execution: "drupal generate:entity:content \\\n --module=\"modulename\" \\\n --entity-class=\"DefaultEntity\" \\\n --entity-name=\"default_entity\" \\\n --base-path=\"/admin/structure\" \\\n --label=\"Default entity\""
+ -
+ description: 'Generate a translatable and revisionable content entity specifying the module, the entity class, the entity name, its path and label'
+ execution: "drupal generate:entity:content \\\n --module=\"modulename\" \\\n --entity-class=\"DefaultEntity\" \\\n --entity-name=\"default_entity\" \\\n --base-path=\"/admin/structure\" \\\n --label=\"Default entity\" \\\n --is-translatable \\\n --revisionable\n --has-forms"
diff --git a/translations/generate.event.subscriber.yml b/translations/generate.event.subscriber.yml
index 97ff9bc..52d7335 100644
--- a/translations/generate.event.subscriber.yml
+++ b/translations/generate.event.subscriber.yml
@@ -1,4 +1,21 @@
description: 'Generate an event subscriber'
+help: 'The generate:event:subscriber command helps you generate a new event subscriber.'
+welcome: 'Welcome to the Drupal Event Subscriber generator'
+options:
+ module: 'The Module name.'
+ name: 'Service name'
+ class: 'Class name'
+ services: 'Load services from the container.'
+ event-name: 'Enter event name'
+ callback-name: 'Callback function name to handle event'
questions:
+ module: 'Enter the module name'
+ name: 'Enter the service name'
class: 'Class name'
+ services: 'Enter your service'
+ event-name: 'Enter event name'
callback-name: 'Callback function name to handle event'
+examples:
+ -
+ description: 'Generate an event subscriber specifying the module name, its name, the class and the events to subscribe'
+ execution: "drupal generate:event:subscriber \\\n --module=\"modulename\" \\\n --name=\"modulename.default\" \\\n --class=\"DefaultSubscriber\" \\\n --events='kernel_request'\n"
diff --git a/translations/generate.form.alter.yml b/translations/generate.form.alter.yml
index dfcf577..133ebfc 100644
--- a/translations/generate.form.alter.yml
+++ b/translations/generate.form.alter.yml
@@ -1,9 +1,27 @@
description: 'Generate an implementation of hook_form_alter() or hook_form_FORM_ID_alter'
help: 'The "%s" command helps you generate a new "%s"'
+welcome: 'Welcome to the Drupal Form Alter generator'
options:
+ module: 'The Module name.'
form-id: 'Form ID to alter'
+ inputs: 'Create inputs in a form.'
+questions:
+ module: 'Enter the module name'
+ form-id: 'Enter the Form ID to alter'
+ type: 'Enter New field type'
+ label: 'Input label'
+ description: Description
+ default-value: 'Default value'
+ weight: 'Weight for input item'
messages:
inputs: "You can add form fields to modify form.\nThis is optional, press enter to continue"
- loading-forms: Loading forms definition from Webprofiler module
+ loading-forms: 'Loading forms definition from Webprofiler module'
hide-form-elements: 'Optionally you can select form items for hide'
help-already-implemented: 'The hook form alter was already implemented in module "%s"'
+examples:
+ -
+ description: 'Generate a hook form alter for an empty form specifying the module name'
+ execution: "drupal generate:form:alter \\\n --module=\"modulename\""
+ -
+ description: 'Generate a hook form alter with 2 fields specifying the module name and the inputs'
+ execution: "drupal generate:form:alter \\\n --module=\"modulename\" \\\n --inputs='\"name\":\"inputtext\", \"type\":\"text_format\", \"label\":\"InputText\", \"options\":\"\", \"description\":\"Just an input text\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"' \\\n --inputs='\"name\":\"email\", \"type\":\"email\", \"label\":\"Email\", \"options\":\"\", \"description\":\"Just an email input\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"'"
diff --git a/translations/generate.form.config.yml b/translations/generate.form.config.yml
new file mode 100644
index 0000000..7590be7
--- /dev/null
+++ b/translations/generate.form.config.yml
@@ -0,0 +1,57 @@
+description: 'Generate a new form config'
+help: 'The generate:form:config command helps you generate a new form config'
+welcome: 'Welcome to the Drupal Form Config generator'
+options:
+ module: 'The Module name.'
+ class: 'The form class name'
+ form-id: 'The Form id'
+ services: 'Load services from the container.'
+ config-file: 'Add a config file'
+ inputs: 'Create inputs in a form.'
+ path: 'Enter the form path'
+ menu-link-gen: 'Generate a menu link'
+ menu-link-title: 'A title for the menu link'
+ menu-parent: 'Menu parent'
+ menu-link-desc: 'A description for the menu link'
+questions:
+ module: 'Enter the module name'
+ class: 'Enter the Form Class name'
+ form-id: 'Enter the Form id'
+ services: 'Enter your service'
+ config-file: 'Do you want to generate a config file?'
+ routing: 'Would you like to register a route for this form?'
+ path: 'Enter the route path'
+ max-amount-characters: 'Maximum amount of characters'
+ textfield-width-in-chars: 'Width of the textfield (in characters)'
+ multiselect-size-in-lines: 'Size of multiselect box (in lines)'
+ input-options: 'Input options separated by comma'
+ menu-link-gen: 'Generate a menu link'
+ menu-link-title: 'Enter a title for the menu link'
+ menu-parent: 'Enter Menu parent'
+ menu-link-desc: 'Enter a description for the menu link'
+ type: 'Enter New field type'
+ label: 'Input label'
+ description: 'Description'
+ default-value: 'Default value'
+ weight: 'Weight for input item'
+suggestions:
+ description-for-menu: 'A description for the menu entry'
+examples:
+ - description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path'
+ execution: |
+ drupal generate:form:config \
+ --module="modulename" \
+ --class="DefaultForm" \
+ --form-id="default_form" \
+ --config-file \
+ --path="/modulename/form/default"
+ - description: 'Generate a form with 2 fields and a config file specifying the module name, the class, a form id, the inputs and the path'
+ execution: |
+ drupal generate:form:config \
+ --module="modulename" \
+ --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":""' \
+ --path="/modulename/form/default"
diff --git a/translations/generate.form.yml b/translations/generate.form.yml
index 0f12793..cd40439 100644
--- a/translations/generate.form.yml
+++ b/translations/generate.form.yml
@@ -6,17 +6,45 @@ options:
class: 'The form class name'
form-id: 'The Form id'
services: common.options.services
+ config-file: 'Add a config file'
inputs: common.options.inputs
path: 'Enter the form path'
+ menu-link-gen: 'Generate a menu link'
+ menu-link-title: 'A title for the menu link'
+ menu-parent: 'Menu parent'
+ menu-link-desc: 'A description for the menu link'
questions:
module: common.questions.module
class: 'Enter the Form Class name'
form-id: 'Enter the Form id'
services: common.questions.services
- inputs: common.questions.inputs
+ config-file: 'Do you want to generate a config file?'
routing: 'Would you like to register a route for this form'
+ path: 'Enter the route path'
+ max-amount-characters: 'Maximum amount of characters'
+ textfield-width-in-chars: 'Width of the textfield (in characters)'
+ multiselect-size-in-lines: 'Size of multiselect box (in lines)'
+ input-options: 'Input options separated by comma'
+ menu-link-gen: 'Generate a menu link'
+ menu-link-title: 'Enter a title for the menu link'
+ menu-parent: 'Enter Menu parent'
+ menu-link-desc: 'Enter a description for the menu link'
+ type: 'Enter New field type'
+ label: 'Input label'
+ description: Description
+ default-value: 'Default value'
+ weight: 'Weight for input item'
+ inputs: common.questions.inputs
menu_link_gen: 'Generate a menu link'
menu_link_title: 'A title for the menu link'
menu_parent: 'Menu parent'
menu_link_desc: 'A description for the menu link'
- path: 'Enter the route path'
+suggestions:
+ description-for-menu: 'A description for the menu entry'
+examples:
+ -
+ description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path'
+ execution: "drupal generate:form \\\n --module=\"modulename\" \\\n --class=\"DefaultForm\" \\\n --form-id=\"default_form\" \\\n --config-file \\\n --path=\"/modulename/form/default\""
+ -
+ description: 'Generate a form with 2 fields and a config file specifying the module name, the class, a form id, the inputs and the path'
+ execution: "drupal generate:form \\\n --module=\"modulename\" \\\n --class=\"DefaultForm\" \\\n --form-id=\"default_form\" \\\n --config-file \\\n --inputs='\"name\":\"inputname\", \"type\":\"text_format\", \"label\":\"InputName\", \"options\":\"\", \"description\":\"Just a text input\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"' \\\n --inputs='\"name\":\"email\", \"type\":\"email\", \"label\":\"Email\", \"options\":\"\", \"description\":\"Just an email input\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"' \\\n --path=\"/modulename/form/default\"\n"
diff --git a/translations/generate.help.yml b/translations/generate.help.yml
index a3560db..02507b2 100644
--- a/translations/generate.help.yml
+++ b/translations/generate.help.yml
@@ -1,6 +1,11 @@
description: 'Generate an implementation of hook_help()'
help: 'The "%s" command helps you generate a hook help "%s"'
-options:
-questions:
+welcome: 'Welcome to the Drupal Help generator'
+options: null
+questions: null
messages:
help-already-implemented: 'The hook help was already implemented in module "%s"'
+examples:
+ -
+ description: 'Generate a hook help specifying the module name and the description'
+ execution: "drupal generate:help \\\n --module=\"modulename\" \\\n --description=\"My Awesome Module\""
diff --git a/translations/generate.jstest.yml b/translations/generate.jstest.yml
new file mode 100644
index 0000000..3d6f828
--- /dev/null
+++ b/translations/generate.jstest.yml
@@ -0,0 +1,22 @@
+description: 'Generate a JavaScript test.'
+help: 'The generate:jstest command helps you to generate a new JavaScript test.'
+welcome: 'Welcome to the Drupal module generator'
+options:
+ class: 'JavaScript test Class name'
+questions:
+ module: common.questions.module
+ class: 'Enter the JavaScript test class name'
+examples:
+ - description: 'Generate a module specifying the module name, machine name, the path, its description, drupal core and the package name. In this example the composer file, the unit test and twig template are generated too'
+ execution: |
+ drupal generate:module \
+ --module="modulename" \
+ --machine-name="modulename" \
+ --module-path="/modules/custom" \
+ --description="My Awesome Module" \
+ --core="8.x" \
+ --package="Custom" \
+ --module-file \
+ --composer \
+ --test \
+ --twigtemplate
diff --git a/translations/generate.module.file.yml b/translations/generate.module.file.yml
index e61f931..23044fe 100644
--- a/translations/generate.module.file.yml
+++ b/translations/generate.module.file.yml
@@ -5,3 +5,7 @@ options:
module: 'The Module name'
questions:
module: 'Enter the new module name'
+examples:
+ -
+ description: 'Generate the .module file specifying the module name'
+ execution: "drupal generate:module:file \\\n --module=\"modulename\"\n"
diff --git a/translations/generate.module.yml b/translations/generate.module.yml
index 733a6bf..1e7c5a3 100644
--- a/translations/generate.module.yml
+++ b/translations/generate.module.yml
@@ -28,8 +28,14 @@ questions:
dependencies: 'Would you like to add module dependencies'
test: 'Do you want to generate a unit test class'
twigtemplate: 'Do you want to generate a themeable template'
+suggestions:
+ my-awesome-module: 'My Awesome Module'
warnings:
module-unavailable: 'Warning The following modules are not already available in your local environment "%s"'
errors:
invalid-core: 'The core version "%s" is invalid.'
directory-exists: 'The target directory "%s" is not empty.'
+examples:
+ -
+ description: 'Generate a module specifying the module name, machine name, the path, its description, drupal core and the package name. In this example the composer file, the unit test and twig template are generated too'
+ execution: "drupal generate:module \\\n --module=\"modulename\" \\\n --machine-name=\"modulename\" \\\n --module-path=\"/modules/custom\" \\\n --description=\"My Awesome Module\" \\\n --core=\"8.x\" \\\n --package=\"Custom\" \\\n --module-file \\\n --composer \\\n --test \\\n --twigtemplate\n"
diff --git a/translations/generate.permissions.yml b/translations/generate.permissions.yml
new file mode 100644
index 0000000..83a30fb
--- /dev/null
+++ b/translations/generate.permissions.yml
@@ -0,0 +1,15 @@
+description: 'Generate module permissions'
+help: 'The generate:permissions command helps you generate new permissions'
+welcome: 'Welcome to the Drupal Permission generator'
+options:
+ module: 'The Module name.'
+questions:
+ module: 'Enter the module name'
+ permission: 'Enter a permission'
+ title: 'Enter a title for the permission'
+ description: 'Enter a description for the permission'
+ restrict-access: 'Restrict Access'
+ add: 'Do you want to add another permission?'
+suggestions:
+ access-content: 'Access content'
+ allow-access-content: 'Allow access to my content'
diff --git a/translations/generate.plugin.block.yml b/translations/generate.plugin.block.yml
index dec87a8..7183abb 100644
--- a/translations/generate.plugin.block.yml
+++ b/translations/generate.plugin.block.yml
@@ -4,19 +4,31 @@ welcome: 'Welcome to the Drupal Plugin Block generator'
options:
module: common.options.module
class: 'Plugin class name'
- label: 'Plugin label'
+ plugin-label: 'Plugin label'
plugin-id: 'Plugin id'
inputs: common.options.inputs
services: common.options.services
theme-region: 'Theme region to render Plugin Block'
+ twigtemplate: 'Generate theme template'
+ label: 'Plugin label'
questions:
module: common.questions.module
class: 'Enter the plugin class name'
- label: 'Enter the plugin label'
+ plugin-label: 'Enter the plugin label'
plugin-id: 'Enter the plugin id'
- inputs: common.questions.inputs
services: common.questions.services
theme-region: 'Enter the theme region to render the Plugin Block.'
+ type: 'Enter New field type'
+ label: 'Enter the plugin label'
+ description: Description
+ default-value: 'Default value'
+ weight: 'Weight for input item'
+ twigtemplate: 'Do you want to generate a themeable template?'
+ inputs: common.questions.inputs
messages:
inputs: "\nYou can add input fields to create special configurations in the block.\nThis is optional, press enter to continue"
invalid-theme-region: 'Region "%s" is invalid'
+examples:
+ -
+ description: 'Generate a plugin block in the header region with an input field specifying the module name, the class, the label, its id, the region and the input'
+ execution: "drupal generate:plugin:block \\\n --module=\"modulename\" \\\n --class=\"DefaultBlock\" \\\n --label=\"Default block\" \\\n --plugin-id=\"default_block\" \\\n --theme-region=\"header\" \\\n --inputs='\"name\":\"inputtext\", \"type\":\"text_format\", \"label\":\"InputText\", \"options\":\"\", \"description\":\"Just an input text\", \"maxlength\":\"\", \"size\":\"\", \"default_value\":\"\", \"weight\":\"0\", \"fieldset\":\"\"'"
diff --git a/translations/generate.plugin.ckeditorbutton.yml b/translations/generate.plugin.ckeditorbutton.yml
index 0eb5bd6..d189dc2 100644
--- a/translations/generate.plugin.ckeditorbutton.yml
+++ b/translations/generate.plugin.ckeditorbutton.yml
@@ -6,6 +6,8 @@ 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.'
+ buttons: 'CKEditor buttons.'
+ button-properties: 'Enter a new button properties.'
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.'
questions:
@@ -15,3 +17,9 @@ questions:
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 \\\n --module=\"modulename\" \\\n --class=\"DefaultCKEditorButton\" \\\n --label=\"Default ckeditor button\" \\\n --plugin-id=\"default_ckeditor_button\" \\\n --buttons='name\":\"Default ckeditor button\", \"label\":\"Default ckeditor button\", \"icon\":\"modules/custom/modulename/js/plugins/default_ckeditor_button/images/icon.png\"' \\\n --buttons='name\":\"My ckeditor button\", \"label\":\"My ckeditor button\", \"icon\":\"modules/custom/modulename/js/plugins/my_ckeditor_button/images/icon.png\"' \\\n --no-interaction\n\ndrupal generate:plugin:ckeditorbutton \\\n --module=\"modulename\" \\\n --class=\"DefaultCKEditorButton\" \\\n --label=\"Default ckeditor button\" \\\n --plugin-id=\"default ckeditor button\" \\\n --button-name=\"Default ckeditor button\" \\\n --button-icon-path=\"modules/custom/modulename/js/plugins/default ckeditor button/images/icon.png\""
diff --git a/translations/generate.plugin.condition.yml b/translations/generate.plugin.condition.yml
index 1ef1bea..8d8e0b0 100644
--- a/translations/generate.plugin.condition.yml
+++ b/translations/generate.plugin.condition.yml
@@ -19,3 +19,13 @@ questions:
context-definition-id: 'Context definition ID'
context-definition-label: 'Context definition label'
context-definition-required: 'Context definition is required'
+examples:
+ -
+ description: 'Generate a plugin condition for a node entity type specifying the module name, the class, the label, its id and the context definition'
+ execution: "drupal generate:plugin:condition \\\n --module=\"modulename\" \\\n --class=\"ExampleCondition\" \\\n --label=\"Example condition\" \\\n --plugin-id=\"example_condition\" \\\n --context-definition-id=\"entity:node\" \\\n --context-definition-label=\"node\" \\\n --context-definition-required"
+ -
+ description: 'Generate a plugin condition for language specifying the module name, the class, the label, its id and the context definition'
+ execution: "drupal generate:plugin:condition \\\n --module=\"modulename\" \\\n --class=\"ExampleCondition\" \\\n --label=\"Example condition\" \\\n --plugin-id=\"example_condition\" \\\n --context-definition-id=\"language\" \\\n --context-definition-label=\"Language\" \\\n --context-definition-required"
+ -
+ description: 'Generate a plugin condition for role configuration specifying the module name, the class, the label, its id and the context definition'
+ execution: "drupal generate:plugin:condition \\\n --module=\"modulename\" \\\n --class=\"ExampleCondition\" \\\n --label=\"Example condition\" \\\n --plugin-id=\"example_condition\" \\\n --context-definition-id=\"entity:user_role\" \\\n --context-definition-label=\"user_role\" \\\n --context-definition-required\n"
diff --git a/translations/generate.plugin.field.yml b/translations/generate.plugin.field.yml
index a5d54b5..bb8d24e 100644
--- a/translations/generate.plugin.field.yml
+++ b/translations/generate.plugin.field.yml
@@ -31,3 +31,9 @@ questions:
field-type: 'Enter the field type the formatter and widget plugin can be used with'
default-widget: 'Enter the default field widget of the field type plugin'
default-formatter: 'Enter the default field formatter of field type plugin'
+suggestions:
+ my-field-type: 'My Field Type'
+examples:
+ -
+ description: 'Generate field type, widget and formatter plugins specifying the module name, the type (class, label, plugin id and description), the formatter (class, label, plugin id) and the widget (class, label and plugin id)'
+ execution: "drupal generate:plugin:field \\\n --module=\"modulename\" \\\n --type-class=\"ExampleFieldType\" \\\n --type-label=\"Example field type\" \\\n --type-plugin-id=\"example_field_type\" \\\n --type-description=\"My Field Type\" \\\n --formatter-class=\"ExampleFormatterType\" \\\n --formatter-label=\"Example formatter type\" \\\n --formatter-plugin-id=\"example_formatter_type\" \\\n --widget-class=\"ExampleWidgetType\" \\\n --widget-label=\"Example widget type\" \\\n --widget-plugin-id=\"example_widget_type\" \\\n --field-type=\"example_field_type\" \\\n --default-widget=\"example_widget_type\" \\\n --default-formatter=\"example_formatter_type\"\n"
diff --git a/translations/generate.plugin.fieldformatter.yml b/translations/generate.plugin.fieldformatter.yml
index a47e9b7..5fbd98e 100644
--- a/translations/generate.plugin.fieldformatter.yml
+++ b/translations/generate.plugin.fieldformatter.yml
@@ -13,3 +13,7 @@ questions:
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin id'
field-type: 'Enter the field type the plugin can be used with'
+examples:
+ -
+ description: 'Generate a text field formatter plugin specifying the module name, the class, the label its plugin id and the field type'
+ execution: "drupal generate:plugin:fieldformatter \\\n --module=\"modulename\" \\\n --class=\"ExampleFieldFormatter\" \\\n --label=\"Example field formatter\" \\\n --plugin-id=\"example_field_formatter\" \\\n --field-type=\"text\"\n"
diff --git a/translations/generate.plugin.fieldtype.yml b/translations/generate.plugin.fieldtype.yml
index 48261de..fb1c76f 100644
--- a/translations/generate.plugin.fieldtype.yml
+++ b/translations/generate.plugin.fieldtype.yml
@@ -17,3 +17,12 @@ questions:
description: 'Enter the plugin Description'
default-widget: 'Enter the default field widget of this plugin'
default-formatter: 'Enter the default field formatter of this plugin'
+suggestions:
+ my-field-type: 'My Field Type'
+examples:
+ -
+ description: 'Generate a field type plugin specifying the module name, the class, its label, the plugin id and a description'
+ execution: "drupal generate:plugin:fieldtype \\\n --module=\"modulename\" \\\n --class=\"ExampleFieldType\" \\\n --label=\"Example field type\" \\\n --plugin-id=\"example_field_type\" \\\n --description=\"My Field Type\""
+ -
+ description: 'Generate a field type plugin with a default widget and formatter specifying the module name, the class, its label, the plugin id and a description'
+ execution: "drupal generate:plugin:fieldtype \\\n --module=\"modulename\" \\\n --class=\"ExampleFieldType\" \\\n --label=\"Example field type\" \\\n --plugin-id=\"example_field_type\" \\\n --description=\"My Field Type\" \\\n --default-widget=\"DefaultWidget\" \\\n --default-formatter=\"DefaultFormatter\"\n"
diff --git a/translations/generate.plugin.fieldwidget.yml b/translations/generate.plugin.fieldwidget.yml
index 9aef32f..bf934ac 100644
--- a/translations/generate.plugin.fieldwidget.yml
+++ b/translations/generate.plugin.fieldwidget.yml
@@ -13,3 +13,7 @@ questions:
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin id'
field-type: 'Enter the field type the plugin can be used with'
+examples:
+ -
+ description: 'Generate a text type field widget plugin specifying the module name, the class, its label, the plugin id and the field type'
+ execution: "drupal generate:plugin:fieldwidget \\\n --module=\"modulename\" \\\n --class=\"ExampleFieldWidget\" \\\n --label=\"Example field widget\" \\\n --plugin-id=\"example_field_widget\" \\\n --field-type=\"text\"\n"
diff --git a/translations/generate.plugin.imageeffect.yml b/translations/generate.plugin.imageeffect.yml
index ac83b21..dd2c03e 100644
--- a/translations/generate.plugin.imageeffect.yml
+++ b/translations/generate.plugin.imageeffect.yml
@@ -13,3 +13,9 @@ questions:
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin id'
description: 'Enter the plugin Description'
+suggestions:
+ my-image-effect: 'My Image Effect'
+examples:
+ -
+ description: 'Generate a image effect plugin specifying the module name, the class, its label, the plugin id and a description'
+ execution: "drupal generate:plugin:imageeffect \\\n --module=\"modulename\" \\\n --class=\"DefaultImageEffect\" \\\n --label=\"Default image effect\" \\\n --plugin-id=\"default_image_effect\" \\\n --description=\"My Image Effect\"\n"
diff --git a/translations/generate.plugin.imageformatter.yml b/translations/generate.plugin.imageformatter.yml
index 32d62f8..748b72a 100644
--- a/translations/generate.plugin.imageformatter.yml
+++ b/translations/generate.plugin.imageformatter.yml
@@ -1,5 +1,6 @@
description: 'Generate image formatter plugin.'
help: 'The generate:plugin:imageformatter command helps you generate a new image formatter plugin.'
+welcome: 'Welcome to the Drupal Image Formatter Plugin generator'
options:
module: common.options.module
class: 'Plugin class name'
@@ -10,3 +11,7 @@ questions:
class: 'Enter the plugin class name'
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin id'
+examples:
+ -
+ description: 'Generate a image formatter plugin specifying the module name, the class, its label and the plugin id'
+ execution: "drupal generate:plugin:imageformatter \\\n --module=\"modulename\" \\\n --class=\"ExampleImageFormatter\" \\\n --label=\"Example image formatter\" \\\n --plugin-id=\"example_image_formatter\"\n"
diff --git a/translations/generate.plugin.mail.yml b/translations/generate.plugin.mail.yml
index 8eb2b44..18497e5 100644
--- a/translations/generate.plugin.mail.yml
+++ b/translations/generate.plugin.mail.yml
@@ -15,3 +15,7 @@ questions:
plugin-id: 'Enter the plugin id'
inputs: common.questions.inputs
services: common.questions.services
+examples:
+ -
+ description: 'Generate an email plugin specifying the module name, the class, its label and the plugin id'
+ execution: "drupal generate:plugin:mail \\\n --module=\"modulename\" \\\n --class=\"HtmlFormatterMail\" \\\n --label=\"Html formatter mail\" \\\n --plugin-id=\"html_formatter_mail\"\n"
diff --git a/translations/generate.plugin.migrate.dataparser.yml b/translations/generate.plugin.migrate.dataparser.yml
new file mode 100644
index 0000000..e4da83a
--- /dev/null
+++ b/translations/generate.plugin.migrate.dataparser.yml
@@ -0,0 +1,20 @@
+description: 'Generate a migrate data parser'
+help: 'The generate:plugin:migrate:dataparser command helps you generate a new migrate data parser.'
+welcome: 'Welcome to the Drupal Migrate Data Parser generator'
+options:
+ module: 'The Module name.'
+ class: 'Plugin class name'
+ plugin-id: 'Plugin id'
+ plugin-title: 'Plugin title'
+questions:
+ class: 'Enter the plugin class name'
+ plugin-id: 'Enter the plugin id'
+ plugin-title: 'Enter the plugin title'
+examples:
+ - description: 'Generate a migration data parser specifying the module name, the class, the plugin id and the plugin title'
+ execution: |
+ drupal generate:plugin:migrate:source \
+ --module="modulename" \
+ --class="PluginClassName" \
+ --plugin-id="plugin_class_name" \
+ --plugin-title="Data parser"
diff --git a/translations/generate.plugin.migrate.process.yml b/translations/generate.plugin.migrate.process.yml
index a7f3487..42ee503 100644
--- a/translations/generate.plugin.migrate.process.yml
+++ b/translations/generate.plugin.migrate.process.yml
@@ -1,9 +1,15 @@
description: 'Generate a migrate process plugin'
help: 'Creates new process plugin for the migration.'
+welcome: 'Welcome to the Drupal Migrate Process Plugin generator'
options:
- module: common.options.module
- class: 'Plugin class name'
- plugin-id: 'Plugin id'
+ module: common.options.module
+ class: 'Plugin class name'
+ plugin-id: 'Plugin id'
questions:
- class: 'Enter the migration process plugin class name'
- plugin-id: 'Enter the migration process plugin id'
\ No newline at end of file
+ module: 'Enter the module name'
+ class: 'Enter the migration process plugin class name'
+ plugin-id: 'Enter the migration process plugin id'
+examples:
+ -
+ description: 'Generate a migration plugin process specifying the module name, the class and its id'
+ execution: "drupal generate:plugin:migrate:process \\\n --module=\"modulename\" \\\n --class=\"MigrationProcess\" \\\n --plugin-id=\"migrationprocess\"\n"
diff --git a/translations/generate.plugin.migrate.source.yml b/translations/generate.plugin.migrate.source.yml
index 5faa228..bcc5128 100644
--- a/translations/generate.plugin.migrate.source.yml
+++ b/translations/generate.plugin.migrate.source.yml
@@ -16,6 +16,15 @@ questions:
table: 'Enter the table name'
alias: 'Enter the alias for the table'
group-by: 'Enter a field to group by if desired'
+ id: 'Enter the field id or press enter if done'
+ description: 'Enter the field description'
fields:
- id: 'Enter the field id or press enter if done'
- description: 'Enter the field description'
+ id: 'Enter the field id or press enter if done'
+ description: 'Enter the field description'
+examples:
+ -
+ description: 'Generate a migration source plugin specifying the module name, the class, its plugin id, the table and its alias'
+ execution: "drupal generate:plugin:migrate:source \\\n --module=\"modulename\" \\\n --class=\"PluginClassName\" \\\n --plugin-id=\"plugin_class_name\" \\\n --table=\"DefaultTableName\" \\\n --alias=\"D\""
+ -
+ description: 'Generate a migration source plugin for specific fields of the users table specifying the module name, the class, its plugin id, the table, its alias and the fields'
+ execution: "drupal generate:plugin:migrate:source \\\n --module=\"modulename\" \\\n --class=\"DefaultPluginClass\" \\\n --plugin-id=\"default_plugin_class\" \\\n --table=\"users\" \\\n --alias=\"u\" \\\n --fields='\"id\":\"id\", \"description\":\"the user id\"' \\\n --fields='\"id\":\"username\", \"description\":\"the username\"' \\\n --fields='\"id\":\"password\", \"description\":\"the user password\"' \\\n --fields='\"id\":\"email\", \"description\":\"the user email\"'\n"
diff --git a/translations/generate.plugin.queue.yml b/translations/generate.plugin.queue.yml
new file mode 100644
index 0000000..f09ad5e
--- /dev/null
+++ b/translations/generate.plugin.queue.yml
@@ -0,0 +1,25 @@
+description: 'Drupal Console Queueworker generator.'
+help: 'The generate:plugin:queue command helps you generate a new queue worker plugin.'
+welcome: 'Welcome to the Drupal Queue Worker Plugin generator'
+options:
+ module: 'The module name'
+ class: 'QueueWorker file name'
+ plugin-id: 'Plugin QueueWorker id'
+ cron-time: 'Cron time'
+ label: 'Queue description'
+questions:
+ class: 'Enter the QueueWorker class name'
+ plugin-id: 'Enter the Plugin QueueWorker id'
+ cron-time: 'Enter the cron time to execute you queue'
+ label: 'Enter the Queue description'
+examples:
+ - description: 'Generate a queue worker plugin specifying the module name, the class and its plugin id'
+ execution: |
+ drupal generate:plugin:queue \
+ --module="modulename" \
+ --class="PluginClassName" \
+ --plugin-id="plugin_class_name" \
+ --cron-time="30" \
+ --label="Example QueueWorker"
+messages:
+ success: 'The Queueworker was generated successfully.'
diff --git a/translations/generate.plugin.rest.resource.yml b/translations/generate.plugin.rest.resource.yml
index 15f4353..3ff7ce3 100644
--- a/translations/generate.plugin.rest.resource.yml
+++ b/translations/generate.plugin.rest.resource.yml
@@ -17,3 +17,7 @@ questions:
plugin-states: 'Please select what REST States implement in your resource (GET is selected by default)'
messages:
selected-states: 'States selected'
+examples:
+ -
+ description: 'Generate a rest resource plugin using GET specifying the module name, the class, the plugin id, its label, the target url and the request type'
+ execution: "drupal generate:plugin:rest:resource \\\n --module=\"modulename\" \\\n --class=\"DefaultRestResource\" \\\n --plugin-id=\"default_rest_resource\" \\\n --plugin-label=\"Default rest resource\" \\\n --plugin-url=\"http://rest.resources.example.com\" \\\n --plugin-states='GET'\n"
diff --git a/translations/generate.plugin.rules.action.yml b/translations/generate.plugin.rules.action.yml
new file mode 100644
index 0000000..1fe7907
--- /dev/null
+++ b/translations/generate.plugin.rules.action.yml
@@ -0,0 +1,41 @@
+description: 'Generate a plugin rule action'
+help: 'The generate:plugin:rules:action command helps you generate a new plugin rule action.'
+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 user 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 \
+ --module="modulename" \
+ --class="DefaultAction" \
+ --label="Default Action" \
+ --plugin-id="default_action" \
+ --category="Action category" \
+ --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 \
+ --module="modulename" \
+ --class="DefaultAction" \
+ --label="Default Action" \
+ --plugin-id="default_action" \
+ --category="Action category" \
+ --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
new file mode 100644
index 0000000..9d27219
--- /dev/null
+++ b/translations/generate.plugin.rules.condition.yml
@@ -0,0 +1,32 @@
+description: 'Generate a plugin rule condition'
+help: 'The generate:plugin:rules:condition 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"'
\ No newline at end of file
diff --git a/translations/generate.plugin.rules.dataprocessor.yml b/translations/generate.plugin.rules.dataprocessor.yml
new file mode 100644
index 0000000..3896ddb
--- /dev/null
+++ b/translations/generate.plugin.rules.dataprocessor.yml
@@ -0,0 +1,24 @@
+description: 'Generate a plugin rule dataprocessor'
+help: 'The generate:plugin:rules:dataprocessor 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" \
diff --git a/translations/generate.plugin.skeleton.yml b/translations/generate.plugin.skeleton.yml
index 084ba5e..d8289bb 100644
--- a/translations/generate.plugin.skeleton.yml
+++ b/translations/generate.plugin.skeleton.yml
@@ -1,13 +1,20 @@
description: 'Generate an implementation of a skeleton plugin'
help: 'The "%s" command helps you generate a skeleton plugin "%s".'
+welcome: 'Welcome to the Drupal Skeleton Plugin generator'
options:
module: common.options.module
plugin: 'The Plugin Id.'
class: 'Plugin class name'
+ services: 'Load services from the container.'
questions:
module: common.questions.module
plugin: 'Enter the Plugin Id'
class: 'Enter the plugin class name'
+ services: 'Enter your service'
messages:
plugin-dont-exist: 'The plugin "%s" does not exist.'
plugin-generator-implemented: 'Plugin "%s" already has an advanced command generator, please use "%s"'
+examples:
+ -
+ description: 'Generate a plugin skeleton specifying module name, the plugin id and the class'
+ execution: "drupal generate:plugin:skeleton \\\n --module=\"modulename\" \\\n --plugin-id=\"link_relation_type\" \\\n --class=\"DefaultLinkRelationType\"\n"
diff --git a/translations/generate.plugin.type.annotation.yml b/translations/generate.plugin.type.annotation.yml
index 0ad7db9..db743a8 100644
--- a/translations/generate.plugin.type.annotation.yml
+++ b/translations/generate.plugin.type.annotation.yml
@@ -11,3 +11,7 @@ questions:
class: 'Enter the plugin type class name'
machine-name: 'Enter the plugin type machine name'
label: 'Enter the plugin type label'
+examples:
+ -
+ description: 'Generate a plugin with annotation discovery specifying module name, class name, machine name and label'
+ execution: "drupal generate:plugin:type:annotation \\\n --module=\"modulename\" \\\n --class=\"ExamplePlugin\" \\\n --machine-name=\"example_plugin\" \\\n --label=\"Example plugin\"\n"
diff --git a/translations/generate.plugin.type.yaml.yml b/translations/generate.plugin.type.yaml.yml
index f44ca53..5c86946 100644
--- a/translations/generate.plugin.type.yaml.yml
+++ b/translations/generate.plugin.type.yaml.yml
@@ -11,3 +11,7 @@ questions:
class: 'Enter the plugin type class name'
plugin-name: 'Enter the plugin type machine name'
plugin-file-name: 'Enter the plugin file name (e.g. MODULE.plugin.filename.yml)'
+examples:
+ -
+ description: 'Generate a plugin with Yaml discovery specifying module name, class name, plugin name and plugin file name'
+ execution: "drupal generate:plugin:type:yaml \\\n --module=\"modulename\" \\\n --class=\"ExamplePlugin\" \\\n --plugin-name=\"example_plugin\" \\\n --plugin-file-name=\"example.plugin\"\n"
diff --git a/translations/generate.plugin.validationconstraint.yml b/translations/generate.plugin.validationconstraint.yml
new file mode 100644
index 0000000..d0dd8b2
--- /dev/null
+++ b/translations/generate.plugin.validationconstraint.yml
@@ -0,0 +1,30 @@
+description: 'Generate a validation constraint plugin.'
+help: 'The generate:plugin:validationconstraint 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
+
diff --git a/translations/generate.plugin.views.field.yml b/translations/generate.plugin.views.field.yml
index 4542d07..6125df3 100644
--- a/translations/generate.plugin.views.field.yml
+++ b/translations/generate.plugin.views.field.yml
@@ -1,11 +1,22 @@
description: 'Generate a custom plugin view field.'
help: 'The generate:plugin:views:field command helps you generate a new custom views field plugin.'
+welcome: 'Welcome to the Drupal Plugin View Field generator'
options:
+ module: 'The Module name.'
+ fields: 'Fields definition (class name, title and description).'
class: 'Views plugin field class name'
title: 'Views plugin field title'
description: 'Views plugin field description'
questions:
+ module: 'Enter the module name'
class: 'Views plugin field class name'
title: 'Views plugin field title'
description: '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: "drupal generate:plugin:views:field \\\n --module=\"modulename\" \\\n --class=\"CustomViewsField\" \\\n --title=\"Custom views field\" \\\n --description=\"My awesome custom views field plugin.\"\n"
diff --git a/translations/generate.post.update.yml b/translations/generate.post.update.yml
index 88d29d8..8b7eb95 100644
--- a/translations/generate.post.update.yml
+++ b/translations/generate.post.update.yml
@@ -1,9 +1,16 @@
description: 'Generate an implementation of hook_post_update_NAME()'
help: 'The "%s" command helps you generate a hook post update NAME "%s"'
+welcome: 'Welcome to the Drupal Post Updat generator'
options:
+ module: 'The Module name.'
post-update-name: 'Post Update Name'
questions:
+ module: 'Enter the module name'
post-update-name: 'Please provide the Post Update Name to be implemeted'
messages:
wrong-post-update-name: 'The post update name "%s" is invalid'
post-update-name-already-implemented: 'The post update name "%s" was already implemented'
+examples:
+ -
+ description: 'Generate an implementation of post update hook specifying the module name and the post update name'
+ execution: "drupal generate:post:update \\\n --module=\"modulename\" \\\n --post-update-name=\"PostUpdateName\"\n"
diff --git a/translations/generate.profile.yml b/translations/generate.profile.yml
index 93154a6..dfd405b 100644
--- a/translations/generate.profile.yml
+++ b/translations/generate.profile.yml
@@ -4,18 +4,29 @@ welcome: 'Welcome to the Drupal installation profile generator'
options:
profile: 'The profile name'
machine-name: 'The machine name (lowercase and underscore only)'
+ profile-path: 'The path of the profile'
description: 'Profile description'
core: 'Core version'
dependencies: 'Module dependencies separated by commas (i.e. context, panels)'
+ themes: 'the theme name'
distribution: 'The distribution name'
questions:
profile: 'Enter the name of the new profile'
machine-name: 'Enter the machine name'
+ profile-path: 'Enter the profile Path'
description: 'Enter the description'
core: 'Enter Drupal Core version'
dependencies: 'Would you like to add module dependencies?'
+ themes: 'Enter theme name'
distribution: 'Is this install profile intended to be a distribution?'
+suggestions:
+ my-useful-profile: 'My Useful Profile'
+ my-kick-ass-distribution: 'My Kick-ass Distribution'
warnings:
module-unavailable: 'Warning: The following modules are not already available in your local environment "%s"'
errors:
directory-exists: 'The target directory "%s" is not empty.'
+examples:
+ -
+ description: 'Generate a profile specifying the profile name, the machine name, a description, the core and its module dependencies'
+ execution: "drupal generate:profile \\\n --profile=\"NewProfileName\" \\\n --machine-name=\"newprofilename\" \\\n --description=\"My Useful Profile\" \\\n --core=\"8.x\" \\\n --dependencies=\"modulename\"\n"
diff --git a/translations/generate.routesubscriber.yml b/translations/generate.routesubscriber.yml
index 7958c01..16a2dad 100644
--- a/translations/generate.routesubscriber.yml
+++ b/translations/generate.routesubscriber.yml
@@ -9,3 +9,7 @@ questions:
module: common.questions.module
name: 'Enter the service name'
class: 'Enter the Class name'
+examples:
+ -
+ description: 'Generate a route subscriber specifying the module name, the route name and its class'
+ execution: "drupal generate:routesubscriber \\\n --module=\"modulename\" \\\n --name=\"modulename.route_subscriber\" \\\n --class=\"RouteSubscriber\"\n"
diff --git a/translations/generate.service.yml b/translations/generate.service.yml
index fc10f69..082de69 100644
--- a/translations/generate.service.yml
+++ b/translations/generate.service.yml
@@ -6,15 +6,28 @@ options:
service-name: 'Service name'
class: 'Class name'
interface: Interface
+ interface-name: 'Interface name'
+ logger-channel: 'Logger channel'
services: common.questions.services
- path: Path
+ path-service: Path
+ path: Path
questions:
module: common.questions.module
service-name: 'Enter the service name'
class: 'Enter the Class name'
interface: 'Create an interface'
- interface_name: 'Enter the interface name'
+ interface-name: 'Enter the interface name'
+ logger-channel: 'Create a logger channel'
services: common.options.services
+ path-service: 'Enter the path for the services'
+ interface_name: 'Enter the interface name'
path: 'Enter the path for the services'
messages:
service-already-taken: 'The service name has been already taken in module "%s"'
+examples:
+ -
+ description: 'Generate a services without interface specifying the module name, the service name, the class and its path'
+ execution: "drupal generate:service \\\n --module=\"modulename\" \\\n --name=\"modulename.default\" \\\n --class=\"DefaultService\" \\\n --path-service=\"/modules/custom/modulename/src/\""
+ -
+ description: 'Generate a services with interface specifying the module name, the service name, the class, the interface name and its path'
+ execution: "drupal generate:service \\\n --module=\"modulename\" \\\n --name=\"modulename.default\" \\\n --class=\"DefaultService\" \\\n --interface \\\n --interface-name=\"InterfaceName\" \\\n --path-service=\"/modules/custom/modulename/src/\"\n"
diff --git a/translations/generate.site.alias.yml b/translations/generate.site.alias.yml
new file mode 100644
index 0000000..a161f4e
--- /dev/null
+++ b/translations/generate.site.alias.yml
@@ -0,0 +1,42 @@
+description: 'Generates a site alias.'
+help: 'The generate:site:alias command helps you generate a new site alias.'
+options:
+ name: 'Site name.'
+ environment: 'Environment name.'
+ type: 'The site type.'
+ composer-root: 'The Drupal root project directory.'
+ host: 'The ip/domain name of the remote system. Not required on local sites.'
+ port: 'The port to use when connecting via ssh.'
+ user: 'The username to use when connecting via ssh.'
+ drupal-console-binary: 'The name of your drupal console binary. By default is "drupal"'
+ extra-options: 'Used only when the target requires extra options, such as tty option and/or alternative authentication method and/or alternative identity file.'
+ site-uri: 'Drupal uri (for multi-sites).'
+ directory: 'Directory to store the generated site alias.'
+ site: 'Use local site as destination.'
+questions:
+ name: 'Select or enter the site name'
+ environment: 'Enter the environment name (dev, test, prod, qa, dev.uri, test.uri, etc...)'
+ type: 'Select site type. Allowed options [local, ssh or container].'
+ composer-root: 'Enter the Drupal root project directory.'
+ host: 'Enter the ip/domain name of the remote system.'
+ port: 'Enter the port to use when connecting via ssh.'
+ user: 'Enter the username to use when connecting via ssh.'
+ drupal-console-binary: 'Enter the name of your drupal console binary'
+ extra-options: 'Select or enter a valid extra option.'
+ site-uri: 'Enter the Drupal uri (for multi-sites).'
+ directory: 'Select the directory to store the generated site alias.'
+examples:
+ - description: 'Generate site alias to connect with ssh using tty as extra-option'
+ execution: |
+ drupal generate:site:alias \
+ --name="demo" \
+ --environment="dev" \
+ --type="ssh" \
+ --composer-root="/path/to/remote/project" \
+ --site-uri="default" \
+ --host="hostName/domain" \
+ --user="userName" \
+ --port="port" \
+ --drupal-console-binary="drupal" \
+ --extra-options="-tt" \
+ --directory="/Users/hjuarez/drupalSq/console/"
\ No newline at end of file
diff --git a/translations/generate.theme.yml b/translations/generate.theme.yml
index 82b7618..aabeb3d 100644
--- a/translations/generate.theme.yml
+++ b/translations/generate.theme.yml
@@ -11,6 +11,7 @@ options:
composer: 'Add a composer.json file'
base-theme: 'Base theme (i.e. classy, stable)'
global-library: 'Global styling library name'
+ libraries: Libraries
regions: Regions
breakpoints: Breakpoints
questions:
@@ -23,6 +24,9 @@ questions:
dependencies: 'Would you like to add module dependencies'
invalid-theme: 'Invalid "%s" theme was selected'
global-library: 'Enter the global styling library name'
+ library-add: 'Do you want to add another library?'
+ library-name: 'Enter library name'
+ library-version: 'Enter library version'
regions: 'Do you want to generate the theme regions'
region-name: 'Enter region name'
region-machine-name: 'Enter region machine name'
@@ -34,7 +38,17 @@ questions:
breakpoint-weight: 'Enter breakpoint weight'
breakpoint-multipliers: 'Enter breakpoint multipliers'
breakpoint-add: 'Do you want to add another breakpoint'
+suggestions:
+ my-awesome-theme: 'My Awesome theme'
+ other: Other
warnings:
module-unavailable: 'Warning The following modules are not already available in your local environment "%s"'
errors:
directory-exists: 'The target directory "%s" is not empty.'
+examples:
+ -
+ description: 'Generate a theme without region and without breakpoint specifying the theme name, its machine name, the theme path, a description, the drupal core, the package name and the global library'
+ execution: "drupal generate:theme \\\n --theme=\"AnotherTheme\" \\\n --machine-name=\"anothertheme\" \\\n --theme-path=\"themes/custom\" \\\n --description=\"My Awesome theme\" \\\n --core=\"8.x\" \\\n --package=\"PackageName\" \\\n --global-library=\"global-styling\" \\\n --base-theme=\"false\""
+ -
+ description: 'Generate a theme base on stable theme with two region defined and one breakpoint specifying the theme name, its machine name, the theme path, a description, the drupal core, the package name, a global library, its base, the regions and the breakpoint'
+ execution: "drupal generate:theme \\\n --theme=\"MyTheme\" \\\n --machine-name=\"mytheme\" \\\n --theme-path=\"themes/custom\" \\\n --description=\"My Awesome theme\" \\\n --core=\"8.x\" \\\n --package=\"MyThemePackage\" \\\n --global-library=\"global-styling\" \\\n --base-theme=\"stable\" \\\n --regions='\"region_name\":\"Content\", \"region_machine_name\":\"content\"' \\\n --regions='\"region_name\":\"Panel\", \"region_machine_name\":\"panel\"' \\\n --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\"'\n"
diff --git a/translations/generate.twig.extension.yml b/translations/generate.twig.extension.yml
index dcf2a83..b7efa28 100644
--- a/translations/generate.twig.extension.yml
+++ b/translations/generate.twig.extension.yml
@@ -2,6 +2,17 @@ description: 'Generate a Twig extension.'
help: 'The generate:twig:extension command helps you to generate a Twig extension.'
welcome: 'Welcome to the Drupal Twig Extension generator'
options:
+ module: 'The Module name.'
name: 'Twig Extension name'
+ class: 'Class name'
+ services: 'Load services from the container.'
questions:
+ module: 'Enter the module name'
+ name: 'Enter the twig Extension name'
+ class: 'Class name'
+ services: 'Enter your service'
twig-extension: 'Enter the Twig extension name'
+examples:
+ -
+ description: 'Generate a twig extension specifying the module name, the extension name and its class'
+ execution: "drupal generate:twig:extension \\\n --module=\"modulename\" \\\n --name=\"modulename.twig.extension\" \\\n --class=\"DefaultTwigExtension\"\n"
diff --git a/translations/generate.update.yml b/translations/generate.update.yml
index ca77f19..54ee3af 100644
--- a/translations/generate.update.yml
+++ b/translations/generate.update.yml
@@ -1,8 +1,15 @@
description: 'Generate an implementation of hook_update_N()'
help: 'The "%s" command helps you generate a hook update N "%s"'
+welcome: 'Welcome to the Drupal Update generator'
options:
+ module: 'The Module name.'
update-n: 'Update Number'
questions:
+ module: 'Enter the module name'
update-n: 'Please provide the Update N to be implemeted'
messages:
wrong-update-n: 'The update number "%s" is invalid'
+examples:
+ -
+ description: 'Generate an update N hook implementation specifying the module name and the N value'
+ execution: "drupal generate:update \\\n --module=\"modulename\" \\\n --update-n=\"8001\"\n"
diff --git a/translations/help.yml b/translations/help.yml
index da7f923..1bde73a 100644
--- a/translations/help.yml
+++ b/translations/help.yml
@@ -1,15 +1,7 @@
description: 'Displays help for a command'
-help: |
- The %command.name% command displays help for a given command:
-
- php %command.full_name% list
-
- You can also output the help in other formats by using the --format option:
-
- php %command.full_name% --format=xml list
-
- To display the list of available commands, please use the list command.
+help: "The %command.name% command displays help for a given command:\n\nphp %command.full_name% list\n\nYou can also output the help in other formats by using the --format option:\n\nphp %command.full_name% --format=xml list\n\nTo display the list of available commands, please use the list command.\n"
arguments:
+ command-name: 'The command name'
command_name: 'The command name'
options:
xml: 'To output list as XML'
diff --git a/translations/image.styles.flush.yml b/translations/image.styles.flush.yml
index cf740fe..7b9c241 100644
--- a/translations/image.styles.flush.yml
+++ b/translations/image.styles.flush.yml
@@ -1,8 +1,15 @@
description: 'Execute flush function by image style or execute all flush images styles'
messages:
- executing-flush: 'Executing flush function on image style "%s"'
- success: 'All flush functions requested were executed successfully'
+ executing-flush: 'Executing flush function on image style "%s"'
+ success: 'All flush functions requested were executed successfully'
options:
- image-style: 'The Images Styles name.'
+ image-style: 'The Images Styles name.'
questions:
- image-style: 'Select Images Styles to flush.'
+ image-style: 'Select Images Styles to flush.'
+examples:
+ -
+ description: 'Flush large image style'
+ execution: "drupal image:styles:flush large\n"
+ -
+ description: 'Flush thumbnail image style'
+ execution: "drupal image:styles:flush thumbnail\n"
diff --git a/translations/init.yml b/translations/init.yml
index 3e45742..f5d7e04 100644
--- a/translations/init.yml
+++ b/translations/init.yml
@@ -1,13 +1,20 @@
description: 'Copy configuration files.'
options:
- destination: 'Destination directory to copy files'
- override: 'Override configurations files flag'
- autocomplete: 'Autocomplete tool files flag.'
+ destination: 'Destination directory to copy files'
+ override: 'Override configurations files flag'
+ autocomplete: 'Autocomplete tool files flag.'
+ site: 'Use local site as destination.'
questions:
- destination: 'Select destination to copy configuration'
- autocomplete: 'Generate autocomplete files'
- language: 'Select language'
- temp: 'Enter temporary file path'
- learning: 'Shows information for learning purposes?'
- generate-inline: 'Show inline representation of the executed command?'
- generate-chain: 'Show chain representation of the executed command?'
+ destination: 'Select destination to copy configuration'
+ autocomplete: 'Generate autocomplete files'
+ language: 'Select language'
+ temp: 'Enter temporary file path'
+ chain: 'Copy chain files examples'
+ sites: 'Copy site alias files examples'
+ learning: 'Shows information for learning purposes?'
+ generate-inline: 'Show inline representation of the executed command?'
+ generate-chain: 'Show chain representation of the executed command?'
+ statistics: 'Allow to collect and send this information to drupalConsole server?'
+messages:
+ statistics: "Help us improve the Drupal Console project, providing information about how you use the application.\nThe colleted information at \"%s\", would be:\n\n- Used language\n- Executed command\n- Generated lines of code\n\nYou could read about our privacy policy at http://drupalconsole.com/privacy.\n"
+ statistics-disable: "You can stop sending information using the following command:\n\ndrupal settings:set statistics.enabled false\n"
diff --git a/translations/list.yml b/translations/list.yml
index cffc401..1929c67 100644
--- a/translations/list.yml
+++ b/translations/list.yml
@@ -1,25 +1,17 @@
description: 'Lists all available commands'
-help: |
- The %command.name% command lists all commands:
- php %command.full_name%
- You can also display the commands for a specific namespace:
- php %command.full_name% test
- You can also output the information in other formats by using the --format option:
- php %command.full_name% --format=xml
- It's also possible to get raw list of commands (useful for embedding command runner):
- php %command.full_name% --raw
+help: "The %command.name% command lists all commands:\nphp %command.full_name%\nYou can also display the commands for a specific namespace:\nphp %command.full_name% test\nYou can also output the information in other formats by using the --format option:\nphp %command.full_name% --format=xml\nIt's also possible to get raw list of commands (useful for embedding command runner):\nphp %command.full_name% --raw\n"
arguments:
- namespace: 'The namespace name'
+ namespace: 'The namespace name'
options:
- xml: 'To output list as XML'
- raw: 'To output raw command list'
- format: 'The output format (txt, xml, json, or md)'
-
+ xml: 'To output list as XML'
+ raw: 'To output raw command list'
+ format: 'The output format (txt, xml, json, or md)'
messages:
- usage: "Usage:\n"
- usage_details: " command [options] [arguments]\n\n"
- arguments: 'Arguments:'
- options: 'Options:'
- help: 'Help:'
- comment: 'Available commands for the "%s" namespace:'
- available-commands: 'Available commands:'
+ usage: "Usage:\n"
+ usage-details: " command [options] [arguments]\n\n"
+ arguments: 'Arguments:'
+ options: 'Options:'
+ help: 'Help:'
+ comment: 'Available commands for the "%s" namespace:'
+ available-commands: 'Available commands:'
+ usage_details: " command [options] [arguments]\n\n"
diff --git a/translations/locale.language.add.yml b/translations/locale.language.add.yml
index 10e1d36..02ed0ec 100644
--- a/translations/locale.language.add.yml
+++ b/translations/locale.language.add.yml
@@ -1,4 +1,8 @@
description: 'Add a language to be supported by your site'
messages:
- invalid-language: 'Language "%s" it''s an invalid language'
- language-add-successfully: 'Language "%s" was added successfully.'
+ invalid-language: 'Language "%s" it''s an invalid language'
+ invalid-languages: 'Languages "%s" are invalid'
+ language-add-successfully: 'Language "%s" was added successfully.'
+ languages-add-successfully: 'Languages "%s" were added successfully.'
+ language-installed: 'Language "%s" is already installed.'
+ languages-installed: 'Languages "%s" are already installed.'
diff --git a/translations/locale.language.delete.yml b/translations/locale.language.delete.yml
index df219c2..8f16b0f 100644
--- a/translations/locale.language.delete.yml
+++ b/translations/locale.language.delete.yml
@@ -1,4 +1,4 @@
description: 'Delete a language to be supported by your site'
messages:
- invalid-language: 'Language "%s" it''s an invalid language'
- language-deleted-successfully: 'Language "%s" was deleted successfully.'
+ invalid-language: 'Language "%s" it''s an invalid language'
+ language-deleted-successfully: 'Language "%s" was deleted successfully.'
diff --git a/translations/locale.translation.status.yml b/translations/locale.translation.status.yml
index f625bd3..913e511 100644
--- a/translations/locale.translation.status.yml
+++ b/translations/locale.translation.status.yml
@@ -1,18 +1,18 @@
-description: List available translation updates
+description: 'List available translation updates'
arguments:
- language: Language for instance es or Spanish
+ language: 'Language for instance es or Spanish'
messages:
- no-languages: "No translatable languages available. Add a language first."
- up-to-date: "All translations up to date."
- no-translations: 'No translation status available. Check manually'
- project: 'Project'
- version: 'Version'
- local-age: 'Local age'
- remote-age: 'Remote age'
- info: Information
- no-translation-files: 'No translation files are provided for development releases.'
- file-not-found: 'File not found at "%s" nor at "%s"'
- local-file-not-found: 'File not found at "%s"'
- translation-not-determined: "Translation file location could not be determined."
- translation-project-updated: 'Updated'
- translation-project-available: 'New translation available'
+ no-languages: 'No translatable languages available. Add a language first.'
+ up-to-date: 'All translations up to date.'
+ no-translations: 'No translation status available. Check manually'
+ project: Project
+ version: Version
+ local-age: 'Local age'
+ remote-age: 'Remote age'
+ info: Information
+ no-translation-files: 'No translation files are provided for development releases.'
+ file-not-found: 'File not found at "%s" nor at "%s"'
+ local-file-not-found: 'File not found at "%s"'
+ translation-not-determined: 'Translation file location could not be determined.'
+ translation-project-updated: Updated
+ translation-project-available: 'New translation available'
diff --git a/translations/migrate.debug.yml b/translations/migrate.debug.yml
index 9f12eff..e343ff2 100644
--- a/translations/migrate.debug.yml
+++ b/translations/migrate.debug.yml
@@ -4,5 +4,5 @@ arguments:
messages:
id: 'Migration Id'
description: Description
- no-migrations: "There aren't migrations available try to execute command: migrate:setup:migrations"
+ no-migrations: 'There aren''t migrations available try to execute command: migrate:setup:migrations'
tags: Tags
diff --git a/translations/migrate.execute.yml b/translations/migrate.execute.yml
index 49156e4..7a8a572 100644
--- a/translations/migrate.execute.yml
+++ b/translations/migrate.execute.yml
@@ -11,7 +11,8 @@ options:
db-prefix: 'Database Prefix'
db-port: 'Database Port'
exclude: 'Migration id(s) to exclude'
- source-base_path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
+ source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
+ source-base_path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
questions:
id: 'Migration Id'
exclude-id: 'Migration Id to exclude (press to stop adding migrations to exclude)'
@@ -25,7 +26,8 @@ questions:
db-prefix: 'Database Prefix'
db-port: 'Database Port'
invalid-migration-id: 'Migration Id "%s" is invalid'
- source-base_path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
+ source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
+ source-base_path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
messages:
processing: 'Processing Migration "%s"'
imported: 'Migration "%s" was imported correctly'
diff --git a/translations/migrate.rollback.yml b/translations/migrate.rollback.yml
index 3666626..13bdae8 100644
--- a/translations/migrate.rollback.yml
+++ b/translations/migrate.rollback.yml
@@ -3,4 +3,4 @@ arguments:
id: 'Migration id(s)'
messages:
not-available: 'Migration Id "%s" is invalid.Skipping'
- processing: 'Rollback "%s" completed'
\ No newline at end of file
+ processing: 'Rollback "%s" completed'
diff --git a/translations/migrate.setup.yml b/translations/migrate.setup.yml
index 200b86a..4c673ec 100644
--- a/translations/migrate.setup.yml
+++ b/translations/migrate.setup.yml
@@ -7,7 +7,8 @@ options:
db-pass: 'Database Pass'
db-prefix: 'Database Prefix'
db-port: 'Database Port'
- source-base_path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
+ source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
+ source-base_path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
questions:
db-type: 'Drupal Database type'
db-host: 'Database Host'
@@ -16,9 +17,10 @@ questions:
db-pass: 'Database Pass'
db-prefix: 'Database Prefix'
db-port: 'Database Port'
- source-base_path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
+ source-base-path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
+ source-base_path: 'Local file directory containing your source site (e.g. /var/www/docroot), or your site address (for example http://example.com)'
messages:
not-drupal: 'Source database does not contain a recognizable Drupal version.'
migrations-created: '"%s" migrations were created successfully for "%s".'
- migrations-not-found: "There aren't migrations available"
+ migrations-not-found: 'There aren''t migrations available'
migrations-already-exist: 'All migrations available are already created'
diff --git a/translations/module.dependency.install.yml b/translations/module.dependency.install.yml
new file mode 100644
index 0000000..f8ccae9
--- /dev/null
+++ b/translations/module.dependency.install.yml
@@ -0,0 +1,11 @@
+description: 'Install dependencies module in the application'
+arguments:
+ module: 'Module or modules to be enabled should be separated by a space'
+messages:
+ no-depencies: 'Nothing to do. This module does not have any dependencies to install'
+ installing: 'Installing module(s) "%s"'
+ success: 'The following module(s) were installed successfully: "%s"'
+examples:
+ - description: 'Install the dependencies of the specfied module'
+ execution: |
+ drupal module:dependency:install modulename
diff --git a/translations/module.download.yml b/translations/module.download.yml
index 690579f..566a010 100644
--- a/translations/module.download.yml
+++ b/translations/module.download.yml
@@ -5,6 +5,7 @@ options:
latest: 'Default to download most recent version'
path: 'The path of the contrib project'
composer: 'Option to point out that the module will be downloaded, managed & installed by Composer'
+ unstable: 'Module unstable'
questions:
path: 'Enter the contrib project Path'
messages:
@@ -13,7 +14,11 @@ messages:
downloading: 'Downloading module "%s" release "%s"'
downloaded: 'Module "%s" version "%s" was downloaded successfully at "%s"'
select-release: 'Please select your favorite release'
- outside-drupal: "Drupal root can't be determined. Use --root to set the destination, current folder will be used instead of."
+ outside-drupal: 'Drupal root can''t be determined. Use --root to set the destination, current folder will be used instead of.'
error-creating-folder: 'Error creating folder "%s", please check your permissions'
no-composer-repo: 'Please, configure Composer in ~/.console/config.yml'
composer: 'Module "%s" was downloaded successfully using Composer'
+examples:
+ -
+ description: 'Download module specifying module name and its path'
+ execution: "drupal module:download modulename \\\n --path=\"modules/contrib\"\n"
diff --git a/translations/module.install.yml b/translations/module.install.yml
index 887d72e..be51160 100644
--- a/translations/module.install.yml
+++ b/translations/module.install.yml
@@ -26,3 +26,10 @@ messages:
installing: 'Installing module(s) "%s"'
composer: 'The module was installed successfully with Composer'
error-creating-folder: 'Error creating folder "%s", please check your permissions'
+ download-with-composer: 'Module "%s" was downloaded with Composer.'
+ not-installed-with-composer: 'Module "%s" seems not to be installed with Composer. Halting.'
+ invalid-name: 'Invalid module name: "%s"'
+examples:
+ -
+ description: 'Install module specifying the module name'
+ execution: "drupal module:install modulename\n"
diff --git a/translations/module.path.yml b/translations/module.path.yml
index 7e48506..528f8a7 100644
--- a/translations/module.path.yml
+++ b/translations/module.path.yml
@@ -3,5 +3,8 @@ arguments:
module: 'The Module name (machine name)'
options:
absolute: 'Return module absolute path'
-messages:
-
+messages: null
+examples:
+ -
+ description: 'Get the relative path of the module specifying the module name'
+ execution: "drupal module:path modulename\n"
diff --git a/translations/module.uninstall.yml b/translations/module.uninstall.yml
index 22e2c1e..eed51b4 100755
--- a/translations/module.uninstall.yml
+++ b/translations/module.uninstall.yml
@@ -1,11 +1,13 @@
description: 'Uninstall module or modules in the application'
+arguments:
+ module: 'Module or modules to be uninstalled should be separated by a space'
questions:
module: 'Module name (press to stop adding modules)'
invalid-module: 'Invalid module "%s"'
options:
- module: 'Module or modules to be uninstalled should be separated by a space'
force: 'Do you want to ignore dependencies and forcefully uninstall the module?'
composer: 'Uninstalls the module using Composer'
+ module: 'Module or modules to be uninstalled should be separated by a space'
messages:
no-modules: 'You must provide module or modules to uninstall.'
dependents: 'Unable to uninstall modules "%s" because are required by "%s"'
@@ -13,3 +15,7 @@ messages:
success: 'The following module(s) were uninstalled successfully: "%s"'
missing: 'Unable to uninstall modules "%s" due to missing modules "%s"'
composer-success: 'You should execute now the following command: "composer remove vendor/package"'
+examples:
+ -
+ description: 'Uninstall the module specifying the module name'
+ execution: "drupal module:uninstall modulename\n"
diff --git a/translations/module.update.yml b/translations/module.update.yml
index 229fb47..609ccbc 100644
--- a/translations/module.update.yml
+++ b/translations/module.update.yml
@@ -12,3 +12,7 @@ messages:
composer: 'The module "%s" was managed successfully with Composer'
only-composer: 'This command only updates modules via Composer. Use --composer option.'
missing-module: 'Enter a module(s) name(s) to update.'
+examples:
+ -
+ description: 'Update module specifying module name and composer parameter'
+ execution: "drupal module:update modulename \\\n --composer\n"
diff --git a/translations/multisite.new.yml b/translations/multisite.new.yml
index b1b72f8..3453790 100644
--- a/translations/multisite.new.yml
+++ b/translations/multisite.new.yml
@@ -1,24 +1,28 @@
-description: "Sets up the files for a new multisite install."
-help: "The multisite:new command assists in setting up new multisite installs by creating the needed subdirectory and files, and can optionally copy an existing 'default' installation."
+description: 'Sets up the files for a new multisite install.'
+help: 'The multisite:new command assists in setting up new multisite installs by creating the needed subdirectory and files, and can optionally copy an existing ''default'' installation.'
arguments:
- directory: "Name of directory under 'sites' which should be created."
- uri: "Site URI to add to sites.php."
+ directory: 'Name of directory under ''sites'' which should be created.'
+ uri: 'Site URI to add to sites.php.'
options:
- copy-default: "Copies existing site from the default install."
+ copy-default: 'Copies existing site from the default install.'
errors:
- subdir-empty: "You must specify a multisite subdirectory to create."
+ subdir-empty: 'You must specify a multisite subdirectory to create.'
subdir-exists: 'The "sites/%s" directory already exists.'
- default-missing: "The sites/default directory is missing."
+ default-missing: 'The sites/default directory is missing.'
mkdir-fail: 'Unable to create "sites/%s". Please check the sites directory permissions and try again.'
- sites-invalid: "The sites.php file located is either not readable or not a file."
- sites-missing: "No sites.php or example.sites.php to copy from."
- sites-other: "A problem was encountered when attempting to write sites.php"
+ sites-invalid: 'The sites.php file located is either not readable or not a file.'
+ sites-missing: 'No sites.php or example.sites.php to copy from.'
+ sites-other: 'A problem was encountered when attempting to write sites.php'
file-missing: 'The file "%s" was not found for copying.'
copy-fail: 'Unable to copy "%s" to "%s". Please check permissions and try again.'
write-fail: 'Unable to write to the file "%s". Please check the file permissions and try again.'
chmod-fail: 'Unable to change permissions on the file "%s". Please ensure that the permissions on that file are correct.'
warnings:
- missing-files: "No sites/default/files directory found. The files directory will need to be created by hand."
+ missing-files: 'No sites/default/files directory found. The files directory will need to be created by hand.'
messages:
copy-default: 'The default install was successfully copied to "sites/%s".'
fresh-site: 'The new multisite structure was successfully created at "sites/%s" and is ready for installation.'
+examples:
+ -
+ description: 'Set up files for a multisite install specifying destination path and uri'
+ execution: "drupal multisite:new vendor/newsite http://mysite.example.com\n"
diff --git a/translations/multisite.update.yml b/translations/multisite.update.yml
new file mode 100644
index 0000000..0da5c90
--- /dev/null
+++ b/translations/multisite.update.yml
@@ -0,0 +1,22 @@
+description: 'Update the files for a multisite installed.'
+help: 'The multisite:new command assists in setting up new multisite installs by creating the needed subdirectory and files, and can optionally copy an existing ''default'' installation.'
+options:
+ uri: 'Name of old directory under ''sites'' which should be updated.'
+ directory: 'Name of new directory for multisite installed. (You could create subdir separated by ''/'')'
+questions:
+ uri: 'Choice the multisite to update'
+ directory: 'Enter the new name (You could use subdir separated by ''/'')'
+errors:
+ invalid-uri: 'The --uri="%s" does not exist'
+ uri-dir-empty: 'You must specify a old multisite directory to update.'
+ new-dir-empty: 'You must specify a new name to update multisite.'
+ subdir-exists: 'The "sites/%s" directory already exists.'
+ mkdir-fail: 'Unable to create "sites/%s". Please check the sites directory permissions and try again.'
+ copy-fail: 'Unable to copy "%s" to "%s". Please check permissions and try again.'
+ write-fail: 'Unable to write to the file "%s". Please check the file permissions and try again.'
+messages:
+ move-settings: 'The file settings.php was successfully movied to "sites/%s".'
+examples:
+ - description: 'Update the files for a multisite installed specifying old path and new path'
+ execution: |
+ drupal multisite:update
diff --git a/translations/node.access.rebuild.yml b/translations/node.access.rebuild.yml
index 98c57b2..23b2914 100644
--- a/translations/node.access.rebuild.yml
+++ b/translations/node.access.rebuild.yml
@@ -7,5 +7,6 @@ messages:
completed: 'Done rebuilding permissions.'
failed: 'Rebuilding permissions was not successful.'
examples:
- - description: Rebuild node access permissions
- execution: drupal node:access:rebuild --batch
+ -
+ description: 'Rebuild node access permissions'
+ execution: 'drupal node:access:rebuild --batch'
diff --git a/translations/queue.run.yml b/translations/queue.run.yml
index 0411433..2dbfed6 100644
--- a/translations/queue.run.yml
+++ b/translations/queue.run.yml
@@ -1,9 +1,8 @@
description: 'Process the selected queue.'
arguments:
- name: 'Queue name.'
+ name: 'Queue name.'
messages:
- success: 'Processed "%s": "%s"/"%s" items in "%s" seconds.'
- failed: '"%s" failed: "%s".'
- missing-name: 'Provide a valid queue name.'
- invalid-name: 'Invalid queue name "%s" provided.'
-
+ success: 'Processed "%s": "%s"/"%s" items in "%s" seconds.'
+ failed: '"%s" failed: "%s".'
+ missing-name: 'Provide a valid queue name.'
+ invalid-name: 'Invalid queue name "%s" provided.'
diff --git a/translations/rest.debug.yml b/translations/rest.debug.yml
index b1adf9e..d36693f 100644
--- a/translations/rest.debug.yml
+++ b/translations/rest.debug.yml
@@ -6,12 +6,14 @@ options:
messages:
id: 'Rest ID'
label: Label
- canonical_url: 'Canonical URL'
+ canonical-url: 'Canonical URL'
status: Status
provider: Provider
enabled: Enabled
disabled: Disabled
rest-state: 'REST States'
supported-formats: 'Supported Formats'
- supported_auth: 'Supported Authentication Providers'
+ supported-auth: 'Supported Authentication Providers'
not-found: 'Rest resource "%s" not found'
+ canonical_url: 'Canonical URL'
+ supported_auth: 'Supported Authentication Providers'
diff --git a/translations/role.delete.yml b/translations/role.delete.yml
new file mode 100644
index 0000000..1eeb545
--- /dev/null
+++ b/translations/role.delete.yml
@@ -0,0 +1,14 @@
+description: 'Delete roles for the application'
+help: 'The role:delete command helps you delete roles.'
+welcome: 'Welcome to the Drupal role delete'
+arguments:
+ rolename: 'Roles name to be deleted'
+messages:
+ role-id: 'Role Id'
+ role-name: 'Role Name'
+ role-created: 'Roles was deleted successfully'
+ invalid-machine-name: 'Role does not exist'
+examples:
+ - description: 'Delete role specifying rolename'
+ execution: |
+ drupal role:delete moderator
diff --git a/translations/role.new.yml b/translations/role.new.yml
new file mode 100644
index 0000000..54303a3
--- /dev/null
+++ b/translations/role.new.yml
@@ -0,0 +1,18 @@
+description: 'Create roles for the application'
+help: 'The role:new command helps you create roles.'
+welcome: 'Welcome to the Drupal role create'
+arguments:
+ rolename: 'Role name to be created'
+ machine-name: 'Role machine name'
+questions:
+ rolename: 'Role name to be created'
+ machine-name: 'Role machine name'
+messages:
+ role-id: 'Role Id'
+ role-name: 'Role Name'
+ role-created: 'Role "%s" was created successfully'
+ invalid-machine-name: 'The machine name is already exist'
+examples:
+ - description: 'Create role specifying rolename and machine-name'
+ execution: |
+ drupal role:new moderator moderator
diff --git a/translations/router.rebuild.yml b/translations/router.rebuild.yml
index 54e1e60..706090f 100644
--- a/translations/router.rebuild.yml
+++ b/translations/router.rebuild.yml
@@ -4,3 +4,8 @@ arguments:
messages:
rebuilding: 'Rebuilding routes, wait a moment please'
completed: 'Done rebuilding route(s).'
+ error-rebuild: 'Error to rebuild route(s).'
+examples:
+ -
+ description: 'Rebuild routes'
+ execution: 'drupal router:rebuild'
diff --git a/translations/self-update.yml b/translations/self-update.yml
index 72014fd..c6c62ed 100644
--- a/translations/self-update.yml
+++ b/translations/self-update.yml
@@ -1,20 +1,15 @@
description: 'Update project to the latest version.'
help: 'Update project to the latest version.'
options:
- major: 'Update to a new major version, if available.'
- manifest: 'Override the manifest file path.'
- current-version: 'Override the version to update from.'
+ major: 'Update to a new major version, if available.'
+ manifest: 'Override the manifest file path.'
+ current-version: 'Override the version to update from.'
questions:
- update: 'Update from version "%s" to version "%s".'
+ update: 'Update from version "%s" to version "%s".'
messages:
- not-phar: 'This instance of the CLI was not installed as a Phar archive.'
- update: 'Updating to version "%s".'
- success: 'Updated from version "%s" to version "%s".'
- check: 'Checking for updates from version: "%s"'
- current-version: 'The latest version "%s", was already installed on your system.'
- instructions: |
- Update using: composer global update
- Or you can switch to a Phar install recommended
- composer global remove drupal/console
- curl https://drupalconsole.com/installer -L -o drupal.phar
-
+ not-phar: 'This instance of the CLI was not installed as a Phar archive.'
+ update: 'Updating to version "%s".'
+ success: 'Updated from version "%s" to version "%s".'
+ check: 'Checking for updates from version: "%s"'
+ current-version: 'The latest version "%s", was already installed on your system.'
+ instructions: "Update using: composer global update\nOr you can switch to a Phar install recommended\ncomposer global remove drupal/console\ncurl https://drupalconsole.com/installer -L -o drupal.phar\n"
diff --git a/translations/server.yml b/translations/server.yml
index 86d5ca0..5f771fc 100644
--- a/translations/server.yml
+++ b/translations/server.yml
@@ -1,15 +1,18 @@
description: 'Runs PHP built-in web server'
arguments:
- address: 'The address:port values'
+ address: 'The address:port values'
messages:
- executing: 'Executing php from "%s".'
- listening: 'Listening on "%s".'
+ executing: 'Executing php from "%s".'
+ listening: 'Listening on "%s".'
errors:
- binary: 'Unable to find PHP binary to run server.'
+ binary: 'Unable to find PHP binary to run server.'
examples:
- - description: 'Run using default address argument value 127.0.0.1:8088'
- execution: 'drupal server'
- - description: 'Passing address argument to use a different port number'
- execution: 'drupal server 127.0.0.1:8089'
- - description: 'Running default address argument values, using --root option to define the Drupal root'
- execution: 'drupal --root=/var/www/drupal8.dev server'
+ -
+ description: 'Run using default address argument value 127.0.0.1:8088'
+ execution: 'drupal server'
+ -
+ description: 'Passing address argument to use a different port number'
+ execution: 'drupal server 127.0.0.1:8089'
+ -
+ description: 'Running default address argument values, using --root option to define the Drupal root'
+ execution: 'drupal --root=/var/www/drupal8.dev server'
diff --git a/translations/settings.set.yml b/translations/settings.set.yml
index adf68b3..84990a9 100644
--- a/translations/settings.set.yml
+++ b/translations/settings.set.yml
@@ -1,11 +1,15 @@
description: 'Change a specific setting value in DrupalConsole config file'
arguments:
- name: 'Setting name in YAML flatten format to set a value in Drupal Console config file'
- value: 'Setting value to set in Drupal Console config file'
+ name: 'Setting name in YAML flatten format to set a value in Drupal Console config file'
+ value: 'Setting value to set in Drupal Console config file'
messages:
- error-parsing: 'An error occurs during parsing of YAML file "%s".'
- error-generating: 'Error setting new language in config file.'
- error-writing: 'Error writing config file.'
- success: 'Setting "%s" was set to "%s"'
- missing-file: 'The "%s" config file is missing, try executing `drupal init`'
- missing-language: 'Provided language: "%s", not found'
+ error-parsing: 'An error occurs during parsing of YAML file "%s".'
+ error-generating: 'Error setting new language in config file.'
+ error-writing: 'Error writing config file.'
+ success: 'Setting "%s" was set to "%s"'
+ missing-file: 'The "%s" config file is missing, try executing `drupal init`'
+ missing-language: 'Provided language: "%s", not found'
+examples:
+ -
+ description: 'Set application language setting value to "es"'
+ execution: 'drupal settings:set application.language es'
diff --git a/translations/site.import.local.yml b/translations/site.import.local.yml
index f4e97c0..b750a75 100644
--- a/translations/site.import.local.yml
+++ b/translations/site.import.local.yml
@@ -14,4 +14,7 @@ questions:
directory: 'Enter the directory name where to install Drupal'
name: 'Enter the name of the site'
environment: 'Enter the site environment name'
-
+examples:
+ -
+ description: 'Import local drupal project specifying the site name and the path'
+ execution: 'drupal site:import:local SiteName /private/var/www/vhost/anexusit/drupal8.dev/web'
diff --git a/translations/site.install.yml b/translations/site.install.yml
index 9932598..8945810 100644
--- a/translations/site.install.yml
+++ b/translations/site.install.yml
@@ -2,6 +2,7 @@ description: 'Install a Drupal project'
arguments:
profile: 'Drupal Profile to be installed'
langcode: 'Drupal language'
+ db-url: 'Use Database url to the installation instead of using the options. (Sqlite is not supported)'
db-type: 'Drupal Database type to be used in install'
db-file: 'Drupal Database file to be used in install'
site-name: 'Drupal site name'
@@ -9,6 +10,7 @@ arguments:
account-name: 'Drupal administrator account name'
account-mail: 'Drupal administrator account mail'
account-pass: 'Drupal administrator account password'
+ force: 'Force to reinstall the site'
questions:
profile: 'Select Drupal profile to be installed'
langcode: 'Select language for your Drupal installation'
@@ -18,12 +20,23 @@ questions:
account-name: 'Provide your Drupal administrator account name'
account-mail: 'Provide your Drupal administrator account mail'
account-pass: 'Provide your Drupal administrator account password'
+suggestions:
+ site-name: 'My awesome site'
messages:
installing: 'Starting Drupal 8 install process'
installed: 'Your Drupal 8 installation was completed successfully'
using-current-database: 'Using "%s" database with name "%s" and user "%s"'
already-installed: 'Drupal is already installed, try dropping your database executing database:drop or install executing site:install --force --no-interaction'
+ connection-failed: 'Connection to the database failed, please check your settings file that has the correct username, password, database, host, port configured.'
sites-backup: 'The sites.php file has temporarily been renamed to backup.sites.php while Drupal installs.'
sites-restore: 'The backup of sites.php has been been restored to sites.php.'
invalid-multisite: 'Invalid multisite, please create multisite using command drupal multisite:new %s --site-uri=%s'
-
+ invalid-db-url: 'Invalid database url, please provide a valid url like "mysql://dbUser:dbPass@dbHost/dbName"'
+ invalid-url-driver: 'Invalid database type, the Sqlite driver is not supported'
+examples:
+ -
+ description: 'Install a drupal project specifying installation type, language code, database configuration, site name, site email and admin credential settings'
+ execution: "drupal site:install standard \\\n --langcode=\"en\" \\\n --db-type=\"mysql\" \\\n --db-host=\"127.0.0.1\" \\\n --db-name=\"drupal8\" \\\n --db-user=\"u53rn4m3\" \\\n --db-pass=\"dbp455\" \\\n --db-port=\"3306\" \\\n --site-name=\"Drupal 8\" \\\n --site-mail=\"admin@example.com\" \\\n --account-name=\"admin\" \\\n --account-mail=\"admin@example.com\" \\\n --account-pass=\"p455w0rd\""
+ -
+ description: 'Install a drupal project using a mysql url'
+ execution: "drupal site:install standard mysql://dbUser:dbPass@dbHost/dbName \\\n --langcode=\"en\" \\\n --site-name=\"Drupal 8\" \\\n --site-mail=\"admin@example.com\" \\\n --account-name=\"admin\" \\\n --account-mail=\"admin@example.com\" \\\n --account-pass=\"p455w0rd\"\n"
diff --git a/translations/site.maintenance.yml b/translations/site.maintenance.yml
index e4c9a10..8d31c9e 100644
--- a/translations/site.maintenance.yml
+++ b/translations/site.maintenance.yml
@@ -6,3 +6,10 @@ messages:
maintenance-off: 'Operating in maintenance mode off'
errors:
invalid-mode: 'Invalid maintenance mode'
+examples:
+ -
+ description: 'Switch on maintenance'
+ execution: "drupal site:maintenance on\n"
+ -
+ description: 'Switch off maintenance'
+ execution: "drupal site:maintenance off\n"
diff --git a/translations/site.mode.yml b/translations/site.mode.yml
index b7296d6..ff75be1 100644
--- a/translations/site.mode.yml
+++ b/translations/site.mode.yml
@@ -10,9 +10,16 @@ messages:
updated: 'Override Value'
invalid-env: 'Invalid environment'
new-services-settings: 'New services settings'
- service: 'Service'
- service-parameter: 'Parameter'
- service-value: 'Value'
+ service: Service
+ service-parameter: Parameter
+ service-value: Value
error-copying-file: 'Error copying file'
error-writing-file: 'Error copying file'
services-file-overwritten: 'Services files "%s" was overwritten'
+examples:
+ -
+ description: 'Switch system to prod'
+ execution: 'drupal site:mode prod'
+ -
+ description: 'Switch system to dev'
+ execution: "drupal site:mode dev\n"
diff --git a/translations/site.statistics.yml b/translations/site.statistics.yml
index 6375041..8eb999c 100644
--- a/translations/site.statistics.yml
+++ b/translations/site.statistics.yml
@@ -1,16 +1,16 @@
description: 'Show the current statistics of website.'
help: 'Show the current statistics of website.'
messages:
- stat-name: 'Name'
- stat-quantity: 'Quantity'
- node-type: 'Node:"%s"'
- comments: 'Comments'
- vocabulary: 'Vocabularies'
- taxonomy-terms: 'Taxonomy terms'
- files: 'Files'
- users: 'Users'
- modules-enabled: 'Modules enabled'
- modules-disabled: 'Modules disabled'
- themes-enabled: 'Themes enabled'
- themes-disabled: 'Themes disabled'
- views: 'Views (Not system views)'
+ stat-name: Name
+ stat-quantity: Quantity
+ node-type: 'Node:"%s"'
+ comments: Comments
+ vocabulary: Vocabularies
+ taxonomy-terms: 'Taxonomy terms'
+ files: Files
+ users: Users
+ modules-enabled: 'Modules enabled'
+ modules-disabled: 'Modules disabled'
+ themes-enabled: 'Themes enabled'
+ themes-disabled: 'Themes disabled'
+ views: 'Views (Not system views)'
diff --git a/translations/site.status.yml b/translations/site.status.yml
index f6474dd..91dee7c 100644
--- a/translations/site.status.yml
+++ b/translations/site.status.yml
@@ -2,22 +2,35 @@ description: 'View current Drupal Installation status'
messages:
application: Application
system: 'System Info'
- hash_salt: 'Hash salt'
+ hash-salt: 'Hash salt'
console: 'Drupal Console'
database: 'Database connection'
- driver: 'Driver'
- host: 'Host'
- port: 'Port'
- username: 'Username'
- password: 'Password'
- theme: 'Themes'
- connection: 'Connection'
+ driver: Driver
+ host: Host
+ port: Port
+ username: Username
+ password: Password
+ theme: Themes
+ connection: Connection
+ theme-default: 'Default theme'
+ theme-admin: 'Admin theme'
+ directory: Directories
+ directory-root: 'Site root directory'
+ directory-temporary: 'Site temporary directory'
+ directory-theme-default: 'Default theme directory'
+ directory-theme-admin: 'Admin theme directory'
+ current-version: 'Current Drupal ("%s")'
+ not-installed: 'Drupal is not installed'
+ hash_salt: 'Hash salt'
theme_default: 'Default theme'
theme_admin: 'Admin theme'
- directory: 'Directories'
directory_root: 'Site root directory'
directory_temporary: 'Site temporary directory'
directory_theme_default: 'Default theme directory'
directory_theme_admin: 'Admin theme directory'
current_version: 'Current Drupal ("%s")'
not_installed: 'Drupal is not installed'
+examples:
+ -
+ description: 'Get drupal installation status specifying the output format as table'
+ execution: "drupal site:status \\\n --format=\"table\"\n"
diff --git a/translations/snippet.yml b/translations/snippet.yml
new file mode 100644
index 0000000..be65042
--- /dev/null
+++ b/translations/snippet.yml
@@ -0,0 +1,16 @@
+description: 'Runs PHP code'
+help: 'Execute a PHP code'
+options:
+ file: 'Path to the file'
+ code: 'Code to execute'
+ show-code: 'Show code after execute'
+errors:
+ invalid-options: 'You need to provide the file option'
+ invalid-file: 'The file "%s" does not exist.'
+examples:
+ - description: 'Run using a file.'
+ execution: 'drupal snippet --file=/path/to/file'
+ - description: 'Passing code as option.'
+ execution: 'drupal snippet --code=codeToExecute'
+ - description: 'Show code executed'
+ execution: 'drupal snippet --show-code --file=/path/to/file'
diff --git a/translations/state.delete.yml b/translations/state.delete.yml
index d9b531c..0e5eced 100644
--- a/translations/state.delete.yml
+++ b/translations/state.delete.yml
@@ -4,4 +4,8 @@ arguments:
messages:
enter-name: 'State name must contain a value.'
state-not-exists: 'The state "%s" does not exist.'
- deleted: 'State "%s" sucessfully deleted.'
\ No newline at end of file
+ deleted: 'State "%s" sucessfully deleted.'
+examples:
+ -
+ description: 'Delete state specifying the state name'
+ execution: "drupal state:delete comment.maintain_entity_statistics\n"
diff --git a/translations/state.override.yml b/translations/state.override.yml
index 1faadb4..0a46a40 100644
--- a/translations/state.override.yml
+++ b/translations/state.override.yml
@@ -1,12 +1,16 @@
description: 'Override a State key.'
help: 'Override a State key.'
arguments:
- key: 'The State key to override.'
- value: 'The State value to set.'
+ key: 'The State key to override.'
+ value: 'The State value to set.'
messages:
- key: 'State key'
- original: 'Original value'
- override: 'Override value'
+ key: 'State key'
+ original: 'Original value'
+ override: 'Override value'
errors:
no-key: 'You must provide a State key to override.'
no-value: 'You must provide a State value to set.'
+examples:
+ -
+ description: 'Override state value specifying the state name and the new value'
+ execution: "drupal state:override comment.node_comment_statistics_scale \"!!float 1\"\n"
diff --git a/translations/taxonomy.term.delete.yml b/translations/taxonomy.term.delete.yml
index d06faf3..867b145 100644
--- a/translations/taxonomy.term.delete.yml
+++ b/translations/taxonomy.term.delete.yml
@@ -1,2 +1,11 @@
description: 'Delete taxonomy terms from a vocabulary'
+vid: 'Enter vocabulary id'
help: 'This command takes the VID as argument or all which will delete every term from every vocabulary'
+messages:
+ nothing: 'All taxonomy terms from "%s" vocabulary already deleted.'
+ processing: 'Deleting "%s" taxonomy term.'
+ invalid-vocabulary: 'Invalid "%s" vocabulary.'
+examples:
+ -
+ description: 'Delete all terms of the "tags" vocabulary'
+ execution: "drupal taxonomy:term:delete tags\n"
diff --git a/translations/test.run.yml b/translations/test.run.yml
index bc3382d..70efff5 100644
--- a/translations/test.run.yml
+++ b/translations/test.run.yml
@@ -2,6 +2,7 @@ description: 'Run Test unit from tests available for application'
arguments:
test-class: 'Test Class'
test-methods: 'Test method(s) to be run'
+ url: 'Test url'
messages:
missing-dependency: 'Test can''t be executed due a missing dependency'
phpunit-pending: 'Logic to execute PHPUnit test is not implemented yet.'
diff --git a/translations/theme.download.yml b/translations/theme.download.yml
index b91ebbd..f51794e 100644
--- a/translations/theme.download.yml
+++ b/translations/theme.download.yml
@@ -12,3 +12,7 @@ messages:
select-release: 'Please select your favorite release'
outside-drupal: 'Drupal root can''t be determined. Use --root to set the destination, current folder will be used instead of.'
error-creating-folder: 'Error creating folder "%s", please check your permissions'
+examples:
+ -
+ description: 'Download theme specifying name and version'
+ execution: "drupal theme:download Alina 7.x-1.2\n"
diff --git a/translations/theme.install.yml b/translations/theme.install.yml
index 795ae15..e2967a8 100644
--- a/translations/theme.install.yml
+++ b/translations/theme.install.yml
@@ -19,3 +19,7 @@ messages:
theme-default-success: 'The "%s" theme has been installed successfully as default theme'
disabled-themes: 'Only uninstalled themes will be listed in autocomplete'
invalid-theme-default: 'Option default is only valid for one theme'
+examples:
+ -
+ description: 'Install theme specifying the name'
+ execution: "drupal theme:install mytheme\n"
diff --git a/translations/theme.path.yml b/translations/theme.path.yml
index 095e29a..fe2c10c 100644
--- a/translations/theme.path.yml
+++ b/translations/theme.path.yml
@@ -1,7 +1,11 @@
description: 'Returns the relative path to the theme (or absolute path)'
arguments:
+ theme: 'Theme name'
module: 'The Theme name (machine name)'
options:
absolute: 'Return theme absolute path'
-messages:
-
+messages: null
+examples:
+ -
+ description: 'Get the path of mytheme'
+ execution: "drupal theme:path mytheme\n"
diff --git a/translations/theme.uninstall.yml b/translations/theme.uninstall.yml
index db53af4..26b59c8 100644
--- a/translations/theme.uninstall.yml
+++ b/translations/theme.uninstall.yml
@@ -16,5 +16,9 @@ messages:
themes-success: 'The themes "%s" were uninstalled successfully'
installed-themes: 'Only installed themes will be listed in autocomplete'
invalid-theme-default: 'Option default is only valid for one theme'
- error-default-theme: 'Theme "%s" is the default theme and cannot be uninstalled.'
+ error-default-theme: 'Theme "%s" is the default theme and cannot be uninstalled.'
error-admin-theme: 'Theme "%s" is the admin theme and cannot be uninstalled.'
+examples:
+ -
+ description: 'Uninstall theme specifying the name'
+ execution: "drupal theme:uninstall mytheme\n"
diff --git a/translations/update.entities.yml b/translations/update.entities.yml
index 67d58ee..4567a8d 100644
--- a/translations/update.entities.yml
+++ b/translations/update.entities.yml
@@ -1,5 +1,9 @@
description: 'Applying Entity Updates'
messages:
- start: 'Starting the entity updates'
- end: 'Finished the entity updates'
- error: 'Error on Entity Updates'
+ start: 'Starting the entity updates'
+ end: 'Finished the entity updates'
+ error: 'Error on Entity Updates'
+examples:
+ -
+ description: 'Update entities'
+ execution: "drupal update:entities\n"
diff --git a/translations/update.execute.yml b/translations/update.execute.yml
index 5e2a708..75fe8d0 100644
--- a/translations/update.execute.yml
+++ b/translations/update.execute.yml
@@ -1,8 +1,24 @@
description: 'Execute a specific Update N function in a module, or execute all'
-options:
+questions:
+ update: 'Do you want to run the specified pending updates?'
+ post-update: 'Do you want to run the specified pending post updates?'
+arguments:
+ module: 'Module name'
update-n: 'Specific Update N function to be executed'
messages:
no-module-updates: 'There aren''t updates available for module "%s"'
executing-update: 'Executing update function "%s" of module "%s"'
+ executing-post-update: 'Executing post update function "%s" of module "%s"'
module-update-function-not-found: 'Module "%s" doesn''t have a function update for "%s"'
executing-required-previous-updates: 'Executing required previous updates'
+ no-pending-updates: 'There aren''t updates available'
+ no-pending-post-updates: 'There aren''t post updates available'
+ pending-post-updates: 'There are the following post updates available:'
+ pending-updates: 'There are the following updates available:'
+examples:
+ -
+ description: 'Execute all updates'
+ execution: 'drupal update:execute'
+ -
+ description: 'Execute updates for system module'
+ execution: "drupal update:execute system\n"
diff --git a/translations/user.create.yml b/translations/user.create.yml
index 6caeae3..819a6e1 100644
--- a/translations/user.create.yml
+++ b/translations/user.create.yml
@@ -15,10 +15,17 @@ questions:
status: 'User status (empty to skip)'
messages:
user-id: 'User ID'
- username: 'Username'
- password: 'Password'
- email: 'E-mail'
- roles: 'Roles'
- created: 'Created'
- status: 'Status'
+ username: Username
+ password: Password
+ email: E-mail
+ roles: Roles
+ created: Created
+ status: Status
user-created: 'User "%s" was created successfully'
+examples:
+ -
+ description: 'Create user specifying username, password, role, email and status'
+ execution: "drupal user:create john p455w0rd \\\n --roles='authenticated' \\\n --email=\"john@anexusit.com\" \\\n --status=\"1\""
+ -
+ description: 'Create admin user specifying username, password, role, email and status'
+ execution: "drupal user:create doe p455w0rd \\\n --roles='administrator' \\\n --email=\"doe@anexusit.com\" \\\n --status=\"1\"\n"
diff --git a/translations/user.delete.yml b/translations/user.delete.yml
index 2c40c65..89a1116 100644
--- a/translations/user.delete.yml
+++ b/translations/user.delete.yml
@@ -2,16 +2,28 @@ description: 'Delete users for the application'
help: 'The user:delete command helps you delete users.'
welcome: 'Welcome to the Drupal user delete'
options:
- user-id: 'User id to be deleted'
+ user: 'User name/id to be deleted'
roles: 'Roles associated to users to be deleted'
+ user-id: 'User id to be deleted'
questions:
- user-id: 'User id to be deleted (empty to skip)'
+ user: 'User name/id to be deleted (empty to skip)'
roles: 'Select role(s) associated with users to be deleted'
+ user-id: 'User id to be deleted (empty to skip)'
messages:
user-id: 'User ID'
- username: 'Username'
+ username: Username
user-deleted: 'User "%s" was deleted successfully'
users-deleted: '"%s" users were deleted successfully'
errors:
- invalid-user-id: 'User id "%s" is invalid'
invalid-user: 'User id "%s" is invalid'
+ invalid-user-id: 'User id "%s" is invalid'
+examples:
+ -
+ description: 'Delete user with the id number 2'
+ execution: "drupal user:delete \\\n --user=\"2\""
+ -
+ description: 'Delete user with the username "jmolivas"'
+ execution: "drupal user:delete \\\n --user=\"jmolivas\""
+ -
+ description: 'Delete users with the role "authenticated"'
+ execution: "drupal user:delete \\\n --role=\"authenticated\"\n"
diff --git a/translations/user.login.clear.attempts.yml b/translations/user.login.clear.attempts.yml
index e7f7af7..997704c 100644
--- a/translations/user.login.clear.attempts.yml
+++ b/translations/user.login.clear.attempts.yml
@@ -1,8 +1,9 @@
description: 'Clear failed login attempts for an account.'
help: 'The user:login:clear:attempts command resets the failed login attempts for an account.'
-options:
- user-id: 'User ID.'
+arguments:
+ user: 'User name/id.'
questions:
+ user: 'Enter User name/id'
uid: 'Enter User ID.'
numeric-uid: 'User id must be an integer.'
invalid-uid: 'User id must be upper than zero.'
diff --git a/translations/user.login.url.yml b/translations/user.login.url.yml
index eeae3d8..8c43363 100644
--- a/translations/user.login.url.yml
+++ b/translations/user.login.url.yml
@@ -1,7 +1,17 @@
description: 'Returns a one-time user login url.'
options:
+ user: 'User name/id.'
user-id: 'User ID.'
messages:
url: 'One-time login for "%s": "%s"'
+questions:
+ user: 'Enter User name/id'
errors:
invalid-user: 'Cannot load user entity (User ID: "%s").'
+examples:
+ -
+ description: 'Get one time login url for user id 10'
+ execution: 'drupal user:login:url 10'
+ -
+ description: 'Get one time login url for username jmolivas'
+ execution: 'drupal user:login:url jmolivas'
diff --git a/translations/user.password.hash.yml b/translations/user.password.hash.yml
index 05f58b2..9ab2c84 100644
--- a/translations/user.password.hash.yml
+++ b/translations/user.password.hash.yml
@@ -11,3 +11,7 @@ messages:
password: Password
hash: Hash
errors: null
+examples:
+ -
+ description: 'Get hash of the word "p455w0rd"'
+ execution: "drupal user:password:hash p455w0rd\n"
diff --git a/translations/user.password.reset.yml b/translations/user.password.reset.yml
index 893c2b9..e9131b8 100644
--- a/translations/user.password.reset.yml
+++ b/translations/user.password.reset.yml
@@ -3,15 +3,24 @@ help: 'The password:reset command helps you to reset password for a
welcome: 'Welcome to the Drupal password reset'
options:
password: 'Password in text format'
+ user: 'User name/id'
user-id: 'User ID'
questions:
- invalid-uid: 'Invalid user id "%s", user id must be an integer'
+ invalid-user: 'Invalid user name/id "%s", user id must be an integer'
invalid-pass: 'Password can''t be empty'
user: 'Enter User ID'
password: 'Enter password'
other-password: 'Other password (press to stop adding passwords)'
+ invalid-uid: 'Invalid user id "%s", user id must be an integer'
messages:
reset-successful: 'Password was updated successfully for user id "%s"'
errors:
invalid-user: 'Invalid user id "%s"'
empty-password: 'Password can not be empty'
+examples:
+ -
+ description: 'Update password specifying the user id and the new password'
+ execution: 'drupal user:password:reset 2 p455w0rd'
+ -
+ description: 'Update password specifying the user jmolivas and the new password'
+ execution: "drupal user:password:reset jmolivas p455w0rd\n"
diff --git a/translations/user.role.yml b/translations/user.role.yml
index 6124062..b296e6c 100644
--- a/translations/user.role.yml
+++ b/translations/user.role.yml
@@ -11,3 +11,10 @@ messages:
no-role-found: 'Role "%s" was not found!'
add-success: 'Username %1$s was added role %2$s sucessfully'
remove-success: 'Username %1$s was removed role %2$s sucessfully'
+examples:
+ -
+ description: 'Add administrator role to the user admin specifying the username and the role'
+ execution: "drupal user:role add admin administrator\n"
+ -
+ description: 'Remove administrator role from the user admin specifying the username and the role'
+ execution: "drupal user:role remove admin administrator\n"
diff --git a/translations/user.unblock.yml b/translations/user.unblock.yml
new file mode 100644
index 0000000..4ccccac
--- /dev/null
+++ b/translations/user.unblock.yml
@@ -0,0 +1,21 @@
+description: 'Unblock a specific user.'
+help: 'The user:unblock command helps you to unblock a specific user.'
+welcome: 'Welcome to the Drupal user unblock'
+options:
+ user: 'User name/id'
+questions:
+ invalid-user: 'Invalid user name/id "%s", user id must be an integer'
+ user: 'Enter User name/id'
+messages:
+ unblock-successful: 'User "%s" was unblocked.'
+warnings:
+ unblocked-user: 'User "%s" is already unblocked'
+errors:
+ invalid-user: 'Invalid user name/id "%s"'
+examples:
+ - description: 'Unblock user providing the user id'
+ execution: |
+ drupal user:unblock 2
+ - description: 'Unblock user providing the user name'
+ execution: |
+ drupal user:unblock johndoe
diff --git a/translations/views.disable.yml b/translations/views.disable.yml
index d309fbf..efe08b7 100644
--- a/translations/views.disable.yml
+++ b/translations/views.disable.yml
@@ -1,3 +1,10 @@
description: 'Disable a View'
messages:
disabled-successfully: 'View "%s" was disabled successfully.'
+examples:
+ -
+ description: 'Disable content view'
+ execution: "drupal views:disable content\n"
+ -
+ description: 'Disable frontpage view'
+ execution: "drupal views:disable frontpage\n"
diff --git a/translations/views.enable.yml b/translations/views.enable.yml
index 952b6ab..0159387 100644
--- a/translations/views.enable.yml
+++ b/translations/views.enable.yml
@@ -1,3 +1,10 @@
description: 'Enable a View'
messages:
- enabled-successfully: 'View "%s" was enabled successfully.'
+ enabled-successfully: 'View "%s" was enabled successfully.'
+examples:
+ -
+ description: 'Enable content view'
+ execution: "drupal views:enable content\n"
+ -
+ description: 'Enable frontpage view'
+ execution: "drupal views:enable frontpage\n"