-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
100 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# 1.6.1 | ||
- fix help | ||
- update readme | ||
|
||
# 1.6.0 | ||
- fix call command | ||
- better help function | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* | ||
* @author <[email protected]> | ||
* @package Conso PHP Console Creator | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* @license MIT | ||
* @category CLI | ||
* @copyright 2019 Lotfio Lakehal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
@@ -67,30 +67,27 @@ public function __construct(InputInterface $input, OutputInterface $output, Cons | |
*/ | ||
public function showConsoleInformation(array $commands) | ||
{ | ||
$this->output->writeLn($this->app->getSignature()."\n"); | ||
$this->output->writeLn($this->app->getName().' ', 'yellow'); | ||
$this->output->writeLn('version '); | ||
$this->output->writeLn($this->app->getVersion(), 'green'); | ||
$this->output->writeLn(' by '.$this->app->getAuthor()); | ||
$output = $this->output; | ||
$app = $this->app; | ||
|
||
$this->output->writeLn("\n\nUsage: \n\n", 'yellow'); | ||
$this->output->writeLn(" command:subcommand [options] [flags]\n\n"); | ||
$output->writeLn($app->getSignature()."\n"); | ||
$output->writeLn($app->getName().' ', 'yellow'); | ||
$output->writeLn('version '); | ||
$output->writeLn($app->getVersion(), 'green'); | ||
$output->writeLn(' by '.$app->getAuthor()); | ||
|
||
$this->output->writeLn("Special flags: \n\n", 'yellow'); | ||
$output->writeLn("\n\nUsage: \n\n", 'yellow'); | ||
$output->writeLn(" command:subcommand [options] [flags]\n\n"); | ||
|
||
$output->writeLn("Special flags: \n\n", 'yellow'); | ||
|
||
$flags = $this->input->reservedFlags(); | ||
$this->output->writeLn(' '.$flags[0].' ', 'green'); | ||
$this->output->writeLn(' '.$flags[1]." \n", 'green'); | ||
$this->output->writeLn(' '.$flags[2].' ', 'green'); | ||
$this->output->writeLn(' '.$flags[3]." \n", 'green'); | ||
$this->output->writeLn(' '.$flags[4].' ', 'green'); | ||
$this->output->writeLn(' '.$flags[5]." \n", 'green'); | ||
$this->output->writeLn(' '.$flags[6].' ', 'green'); | ||
$this->output->writeLn(' '.$flags[7]." \n", 'green'); | ||
$this->output->writeLn(' '.$flags[8].' ', 'green'); | ||
$this->output->writeLn($flags[9]." \n", 'green'); | ||
$this->output->writeLn(' '.$flags[10].' ', 'green'); | ||
$this->output->writeLn(' '.$flags[11]." \n", 'green'); | ||
|
||
for($i = 0; $i < count($flags); $i++) | ||
{ // 6 = --ansi length | ||
$line = ' ' . $flags[$i] . str_repeat(' ', (6 - strlen($flags[$i])) + 3) . $flags[++$i] . "\n"; | ||
$output->writeLn($line, 'green'); | ||
} | ||
} | ||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* | ||
* @author <[email protected]> | ||
* @package Conso PHP Console Creator | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* @license MIT | ||
* @category CLI | ||
* @copyright 2019 Lotfio Lakehal | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
@@ -40,7 +40,7 @@ trait ConsoTrait | |
* | ||
* @var string | ||
*/ | ||
protected $version = '1.0.0'; | ||
protected $version = '1.6.1'; | ||
|
||
/** | ||
* author. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
/** | ||
* @author <[email protected]> | ||
* | ||
* @version 1.6.0 | ||
* @version 1.6.1 | ||
* | ||
* @license MIT | ||
* | ||
|