Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
Core Commands
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Oct 2011 at 15:33 UTC
Updated:
11 Sep 2013 at 11:10 UTC
When you use the following command, in some cases a confirmation message appears, making it impossible to automate.
drush [@site.alias] vdel maintenance_mode
Enter a number to choose which variable to delete.
[0] : Cancel
[1] : maintenance_mode
[2] : maintenance_mode_message
Is there a way to make drush not try to be helpful when an exact match exists to a variable name?
Comments
Comment #1
moshe weitzman commentedNot possible yet. I suggest adding a --always-delete option which does this. That name matches --always-set in vset command.
Comment #2
msonnabaum commentedDoes -y not work here? I know I have this line in my deployment script and it works:
drush -r /var/www/drupal/docroot vset -y site_offline 0Comment #3
moshe weitzman commented@msonnabaum - that only works if there is one match, Look at the example moonray posted.
Comment #4
msonnabaum commentedYeah, I'd be ok with never prompting unless there isn't an exact match. It's always felt odd to me the way it works now.
Comment #5
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If this feature is still desired, you may copy it to our Github project. For best results, create a Pull Request that has been updated for the master branch. Post a link here to the PR, and please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.