From 706581cff05141eecfda4d08a68bbc1681a5831c Mon Sep 17 00:00:00 2001 From: Fred Carlsen Date: Wed, 26 Sep 2018 16:00:20 +0200 Subject: [PATCH] Cleanup --- CHANGELOG.md | 4 ++++ src/console/controllers/DefaultController.php | 10 +++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe9156b..2d41447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 1.0.1 - 2018-09-09 +### Changed +- Cleanup + ## 1.0.0 - 2018-09-09 ### Added - Initial release diff --git a/src/console/controllers/DefaultController.php b/src/console/controllers/DefaultController.php index 8a6184f..a591697 100644 --- a/src/console/controllers/DefaultController.php +++ b/src/console/controllers/DefaultController.php @@ -19,6 +19,7 @@ use Symfony\Component\Process\Process; use Symfony\Component\Finder\Finder; use yii\console\Controller; +use yii\console\ExitCode; use yii\helpers\Console; @@ -45,7 +46,7 @@ class DefaultController extends Controller public $lines = null; /** - * @var string Clear terminal output + * @var string Clear the terminal screen */ public $clear = false; @@ -100,14 +101,9 @@ public function actionIndex() $this->output->write($line); }); - return $result; + return ExitCode::OK; } - protected $signature = 'tail - {--lines=0 : Output the last number of lines} - {--H|hide-stack-traces : Filter out the stack traces} - {--clear : Clear the terminal screen}'; - protected function findLatestLogFile(string $directory, $type = 'web') {