X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Flib%2FDrush%2FPsysh%2FShell.php;fp=vendor%2Fdrush%2Fdrush%2Flib%2FDrush%2FPsysh%2FShell.php;h=0000000000000000000000000000000000000000;hp=7e065af8f32e72beba4d7459db700015e945c58d;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/lib/Drush/Psysh/Shell.php b/vendor/drush/drush/lib/Drush/Psysh/Shell.php deleted file mode 100644 index 7e065af8f..000000000 --- a/vendor/drush/drush/lib/Drush/Psysh/Shell.php +++ /dev/null @@ -1,62 +0,0 @@ -getCommandFromInput($input)) { - return $this->get($name); - } - } - - /** - * Check whether a command is set for the current input string. - * - * @param string $input - * - * @return bool True if the shell has a command for the given input. - */ - protected function hasCommand($input) { - if ($name = $this->getCommandFromInput($input)) { - return $this->has($name); - } - - return false; - } - - /** - * Get the command from the current input, takes aliases into account. - * - * @param string $input - * The raw input - * - * @return string|NULL - * The current command. - */ - protected function getCommandFromInput($input) { - // Remove the alias from the start of the string before parsing and - // returning the command. Essentially, when choosing a command, we're - // ignoring the site alias. - $input = preg_replace('|^\@[^\s]+|', '', $input); - - $input = new StringInput($input); - return $input->getFirstArgument(); - } - -}