1
0
Fork 0

Warn user that commands are being run in another directory

pull/2320/head
Jordi Boggiano 2013-10-11 19:59:30 -03:00
parent 4989940533
commit 57146c12b4
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ EOT
// change to global dir // change to global dir
$config = Factory::createConfig(); $config = Factory::createConfig();
chdir($config->get('home')); chdir($config->get('home'));
$output->writeln('<info>Changed current directory to '.$config->get('home').'</info>');
// create new input without "global" command prefix // create new input without "global" command prefix
$input = new StringInput(preg_replace('{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}', '', $input->__toString(), 1)); $input = new StringInput(preg_replace('{\bg(?:l(?:o(?:b(?:a(?:l)?)?)?)?)?\b}', '', $input->__toString(), 1));