summaryrefslogtreecommitdiff
path: root/src/IRC/Application.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/IRC/Application.php')
-rw-r--r--src/IRC/Application.php10
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];
}
}