Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
informative messages added to server:run command
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Jul 11, 2018
1 parent c278398 commit 1891836
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Server/ServerRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,23 @@ protected function execute(InputInterface $input, OutputInterface $output) : voi
{
$hostName = $input->getOption('host');
$publicFolder = $input->getOption('public');

$output->writeln(' ');
$output->writeln('<comment>-----------------------------SELAMI WEB SERVER-----------------------------------</comment>');
$output->writeln(' ');

$output->writeln(' <comment>Usage:</comment>');
$output->writeln(' selami server:run [options]');
$output->writeln(' ');

$output->writeln(' <comment>Available Options:</comment>');
$output->writeln(' <info>--host </info> Sets host name. <comment>Default: 127.0.0.1</comment>');
$output->writeln(' <info>--public</info> Sets public folder that server will be run. <comment>Default: ./public</comment>');
$output->writeln(' ');

$output->writeln('<comment>---------------------------------------------------------------------------------</comment>');
$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);
Expand Down

0 comments on commit 1891836

Please sign in to comment.