diff options
| author | Fbenas <philbeansburton@gmail.com> | 2020-06-14 20:57:06 +0100 | 
|---|---|---|
| committer | Fbenas <philbeansburton@gmail.com> | 2020-06-14 20:57:06 +0100 | 
| commit | 1ddb720922c4606ff05f762ce98a021924f3958c (patch) | |
| tree | 680ba916b679112dae221cf3b5b99c7fefbfbc60 /src/IRC/Application.php | |
| parent | 37594ccdf6581d669045e097114be37d221dba24 (diff) | |
Diffstat (limited to 'src/IRC/Application.php')
| -rw-r--r-- | src/IRC/Application.php | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/src/IRC/Application.php b/src/IRC/Application.php index 4bb6d71..8a5f051 100644 --- a/src/IRC/Application.php +++ b/src/IRC/Application.php @@ -10,7 +10,7 @@ use Symfony\Component\Process\Process;  class Application extends BlaApplication  { -    public function command(): Command +    public function commands(): Array      {          $command = new Command;          $command->setName('task:list'); @@ -29,19 +29,19 @@ class Application extends BlaApplication                  }                  $process = new Process($process_argument); -                 +                  $process->run();                  if (!$process->isSuccessful()) {                      $output->write($process->getErrorOutput());                      return Command::SUCCESS;                  } - -                $output->write($process->getOutput()); +                $array_output = explode("\n", $process->getOutput()); +                $output->writeLn($array_output[count($array_output) - 2]);                  return Command::FAILURE;              }          ); -        return $command; +        return [$command];      }  } | 
