As noted in #2625846-28: Run drush export commands as customized user the recently added run-as option is equivalent to using the drush --user option when executing the commands.
To recap, this command:
drush --user=1 default-content-export-references user --folder=$PWD/content_as_user_1
produces basically the same output of:
drush default-content-export-references user --run-as=1 --folder=$PWD/content_run_as_user_1
So I would propose to remove the run-as option, and document a little better that the more general --user option can be used.
If this sounds OK I can prepare a patch.
After that is done we could discuss if running the commands as user 1 by default makes sense.
Thanks,
Antonio
Comments
Comment #2
aaronbaumanI introduced the run-as option, not realizing the global --user flag was available.
I can confirm that --user=1 has the same behavior, so run-as should be removed.
Comment #3
andypostit needs patch, and I'd like to rollback
Comment #4
MerryHamster commentedPatch
Comment #5
MerryHamster commentedComment #6
aaronbaumanThanks for the patch MerryHamster
The task is to remove the "run-as" option entirely, as well as removing the setup and teardown functions.
Rolling back all the way prior to https://www.drupal.org/node/2625846#comment-11878807
ie. http://cgit.drupalcode.org/default_content/commit/?id=11fa548
Comment #7
aaronbaumanComment #8
andypostThanx, gonna commit this soon
Comment #10
andypostThanx, now we can proceed with split