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

Commit 1891836

Browse files
committed
informative messages added to server:run command
1 parent c278398 commit 1891836

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/Server/ServerRun.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,23 @@ protected function execute(InputInterface $input, OutputInterface $output) : voi
4141
{
4242
$hostName = $input->getOption('host');
4343
$publicFolder = $input->getOption('public');
44+
45+
$output->writeln(' ');
46+
$output->writeln('<comment>-----------------------------SELAMI WEB SERVER-----------------------------------</comment>');
47+
$output->writeln(' ');
48+
49+
$output->writeln(' <comment>Usage:</comment>');
50+
$output->writeln(' selami server:run [options]');
51+
$output->writeln(' ');
52+
53+
$output->writeln(' <comment>Available Options:</comment>');
54+
$output->writeln(' <info>--host </info> Sets host name. <comment>Default: 127.0.0.1</comment>');
55+
$output->writeln(' <info>--public</info> Sets public folder that server will be run. <comment>Default: ./public</comment>');
56+
$output->writeln(' ');
57+
58+
$output->writeln('<comment>---------------------------------------------------------------------------------</comment>');
59+
$output->writeln(' ');
60+
4461
$output->writeln('Starting Selami Skeleton App local web server from port 8080 on 127.0.0.1 at '.$publicFolder);
4562
$process = new Process('php -S ' . $hostName . ':8080 -t ' . $publicFolder);
4663
$process->setTimeout(null);

0 commit comments

Comments
 (0)