Drush Command
drush_commandRun any Drush command on Drupal sites, correctly handling flags so confirmations work and destructive actions aren't silently approved.
Instructions
Execute any Drush command.
options values are rendered as drush expects them. Drush flags take
no value, so {"yes": True} must become --yes and not
--yes=True, which drush rejects with "The --yes option does not
accept a value". That made every confirmation-answering call fail --
including pm:install, so installing a module reported success
while nothing was installed. A False means the caller does not want
the flag, so it is omitted rather than spelled --yes=False; that
direction was the dangerous one, because it used to pass --yes
and silently suppress confirmation on destructive commands.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| command | Yes | ||
| options | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||