Skip to content

Commit

Permalink
[entity:delete] Add --all option. (#3599) (#145)
Browse files Browse the repository at this point in the history
* [entity:delete] Add --all option. (#3599)

* [entity:delete] Add confirm message for --all. (#3599)
  • Loading branch information
cburschka authored and jmolivas committed Dec 5, 2017
1 parent 052d1bc commit 86ce043
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion translations/entity.delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@ help: 'The <info>entity:delete</info> command helps you delete entities.'
arguments:
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'
messages:
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
drupal entity:delete node 1

0 comments on commit 86ce043

Please sign in to comment.