drush-ops/drush — pull request #317 by p4ul (2013-12-08 21:07:22+00:00)
Title: Provides a better user experience when `cc all` called outside Drupal dir

This is to stop the issue of calling Drush cache clear outside a Drupal directory and not realising it.

For instance a Drupal site is located in /var/www/oursite/html/ and you navigate into /var/www/oursite/ and call `drush cc all`.

Currently calling `drush cc all` in a non Drupal directory

`'drush' cache was cleared. [success] `

Is pretty easy to confuse with calling `drush cc all` in a Drupal directory. (Even though they have slightly different messages they both return success)

`'all' cache was cleared in /var/www/mch/mch/htdocs#mch [success] `

I have modifed the command to return

`No Drupal site found, only 'drush' cache was cleared. [warning]`