Example #1
0
 /**
  * Return the current Drush version.
  *
  * n.b. Called before the DI container is initialized.
  * Do not log, etc. here.
  */
 public static function getVersion()
 {
     if (!static::$version) {
         $drush_info = static::drush_read_drush_info();
         $instance = new Version($drush_info['drush_version'], DRUSH_BASE_PATH);
         static::$version = $instance->getversion();
     }
     return static::$version;
 }