From 189183643b956182fbbb71c906f24a6c923a83b7 Mon Sep 17 00:00:00 2001 From: Mehmet Korkmaz Date: Wed, 11 Jul 2018 13:57:25 +0300 Subject: [PATCH] informative messages added to server:run command --- src/Server/ServerRun.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/Server/ServerRun.php b/src/Server/ServerRun.php index f6d0955..36d172c 100644 --- a/src/Server/ServerRun.php +++ b/src/Server/ServerRun.php @@ -41,6 +41,23 @@ protected function execute(InputInterface $input, OutputInterface $output) : voi { $hostName = $input->getOption('host'); $publicFolder = $input->getOption('public'); + + $output->writeln(' '); + $output->writeln('-----------------------------SELAMI WEB SERVER-----------------------------------'); + $output->writeln(' '); + + $output->writeln(' Usage:'); + $output->writeln(' selami server:run [options]'); + $output->writeln(' '); + + $output->writeln(' Available Options:'); + $output->writeln(' --host Sets host name. Default: 127.0.0.1'); + $output->writeln(' --public Sets public folder that server will be run. Default: ./public'); + $output->writeln(' '); + + $output->writeln('---------------------------------------------------------------------------------'); + $output->writeln(' '); + $output->writeln('Starting Selami Skeleton App local web server from port 8080 on 127.0.0.1 at '.$publicFolder); $process = new Process('php -S ' . $hostName . ':8080 -t ' . $publicFolder); $process->setTimeout(null);