This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/drupal/console-en/translations/user.role.yml
2018-11-23 12:29:20 +00:00

21 lines
1 KiB
YAML

description: 'Adds/removes a role for a given user'
help: 'The <info>user:role</info> command helps you to add or remove a role to a user.'
welcome: 'Welcome to the Drupal user rule'
arguments:
roles: 'Roles to add or remove. Please provide the machine name (only one)'
operation: 'Add or remove'
user: 'The affected user (only one)'
messages:
bad-arguments: 'Some arguments are missing! Please, provide all the following arguments: [add/remove] [username] [role]'
no-user-found: 'Username "%s" was not found!'
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
- description: 'Remove administrator role from the user admin specifying the username and the role'
execution: |
drupal user:role remove admin administrator