It would be great if we could pass in argument(s) to limit the query on specific field(s).

drush sar --field=field_random_text string_to_replace replacement_string

Comments

cafuego’s picture

Assigned: Unassigned » cafuego
Category: feature » task

Wouldn't it just :-)

cafuego’s picture

Status: Active » Needs review

I've just pushed provisional support for this to the 7.x-2.x branch. Please give it a try.

drush sar --fields=foo,bar,frog weasel frog
drush sar --blocks chicken egg

You cannot perform the replace on a limited set of fields and all blocks at the same time, though if you specify neither blocks nor fields it will process everything as per what it used to do anyway.

cafuego’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

It changes the target version.