diff --git a/Changelog b/Changelog index 4a22925be..d8a04dfa6 100755 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ 2017-07-27 DariusIII - * Chg: Update phpmailer to latest version + * Chg: Add new console command to start and stop tmux (tmux-ui:start and tmux-ui:stop) + * Chg: Update phpmailer to latest version 2017-07-26 DariusIII * Fix: Fix the logic for limits in release_naming_regexes-test and Regexes class. Should fix issue #156 * Chg: Declare return types and add @throw annotations where needed in Regexes and ReleaseCleaning classes diff --git a/app/Console/Commands/TmuxUIStart.php b/app/Console/Commands/TmuxUIStart.php new file mode 100644 index 000000000..19487abd9 --- /dev/null +++ b/app/Console/Commands/TmuxUIStart.php @@ -0,0 +1,52 @@ +run(function ($type, $buffer) { + if (Process::ERR === $type) { + echo 'ERR > '.$buffer; + } else { + echo $buffer; + } + }); + } +} diff --git a/app/Console/Commands/TmuxUIStop.php b/app/Console/Commands/TmuxUIStop.php new file mode 100644 index 000000000..bdbc8c962 --- /dev/null +++ b/app/Console/Commands/TmuxUIStop.php @@ -0,0 +1,52 @@ +run(function ($type, $buffer) { + if (Process::ERR === $type) { + echo 'ERR > '.$buffer; + } else { + echo $buffer; + } + }); + } +} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 1378dac08..2e85f9e7a 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -2,6 +2,8 @@ namespace App\Console; +use App\Console\Commands\TmuxUIStart; +use App\Console\Commands\TmuxUIStop; use App\Console\Commands\UpdateNNTmux; use App\Console\Commands\UpdateNNTmuxComposer; use App\Console\Commands\UpdateNNTmuxDB; @@ -24,7 +26,9 @@ class Kernel extends ConsoleKernel UpdateNNTmuxGit::class, UpdateNNTmuxComposer::class, VerifyNNTmuxSettings::class, - VerifyNNTmuxVersion::class + VerifyNNTmuxVersion::class, + TmuxUIStart::class, + TmuxUIStop::class ]; /**