From 86ce043f17368e6e1919f7de9555f72d2b39c2b5 Mon Sep 17 00:00:00 2001 From: Christoph Burschka Date: Tue, 5 Dec 2017 10:39:38 +0100 Subject: [PATCH] [entity:delete] Add --all option. (#3599) (#145) * [entity:delete] Add --all option. (#3599) * [entity:delete] Add confirm message for --all. (#3599) --- translations/entity.delete.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/translations/entity.delete.yml b/translations/entity.delete.yml index 80c0289..5994d48 100644 --- a/translations/entity.delete.yml +++ b/translations/entity.delete.yml @@ -3,13 +3,17 @@ help: 'The entity:delete 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 \ No newline at end of file + drupal entity:delete node 1