| @@ 34-38 (lines=5) @@ | ||
| 31 | public function startTask($taskName) |
|
| 32 | { |
|
| 33 | if ($this->output->getVerbosity() >= OutputInterface::VERBOSITY_NORMAL) { |
|
| 34 | if ($this->output->getVerbosity() == OutputInterface::VERBOSITY_NORMAL) { |
|
| 35 | $this->output->write(" "); |
|
| 36 | } else { |
|
| 37 | $this->output->write("➤ "); |
|
| 38 | } |
|
| 39 | ||
| 40 | $this->output->writeln("Executing task $taskName"); |
|
| 41 | ||
| @@ 51-55 (lines=5) @@ | ||
| 48 | */ |
|
| 49 | public function endTask() |
|
| 50 | { |
|
| 51 | if ($this->output->getVerbosity() == OutputInterface::VERBOSITY_NORMAL && !$this->output->getWasWritten()) { |
|
| 52 | $this->output->write("\033[k\033[1A\r<info>✔</info>\n"); |
|
| 53 | } else { |
|
| 54 | $this->output->writeln("<info>✔</info> Ok"); |
|
| 55 | } |
|
| 56 | } |
|
| 57 | ||
| 58 | /** |
|