Skip to content

Commit

Permalink
Better usage examples for entity:save (#6102)
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored Sep 6, 2024
1 parent e232b79 commit b8e9158
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Commands/core/EntityCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ public function doDelete(string $entity_type, array $ids): void
#[CLI\Option(name: 'publish', description: 'Publish entities as they are saved.')]
#[CLI\Option(name: 'unpublish', description: 'Unpublish entities as they are saved.')]
#[CLI\Usage(name: 'drush entity:save node --bundle=article', description: 'Re-save all article entities.')]
#[CLI\Usage(name: 'drush entity:save shortcut', description: 'Re-save all shortcut entities.')]
#[CLI\Usage(name: 'drush entity:save shortcut --unpublish', description: 'Re-save all shortcut entities, and unpublish them all.')]
#[CLI\Usage(name: 'drush entity:save node 22,24', description: 'Re-save nodes 22 and 24.')]
#[CLI\Usage(name: 'echo 22,24 | drush entity:save node -', description: 'Re-save nodes 22 and 24. Ids are passed via Stdin.')]
#[CLI\Usage(name: 'cat /path/to/ids.csv | drush entity:save node -', description: 'Re-save the nodes whose Ids are listed in ids.csv.')]
#[CLI\Usage(name: 'drush entity:save node --exclude=9,14,81', description: 'Re-save all nodes except node 9, 14 and 81.')]
#[CLI\Usage(name: 'drush entity:save user', description: 'Re-save all users.')]
#[CLI\Usage(name: 'drush entity:save node --chunks=5', description: 'Re-save all node entities in steps of 5.')]
Expand Down

0 comments on commit b8e9158

Please sign in to comment.