kernel update
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
namespace kernel\console;
|
||||
|
||||
|
||||
use kernel\helpers\Debug;
|
||||
|
||||
class Out
|
||||
{
|
||||
private $foreground_colors = array();
|
||||
@ -64,6 +66,11 @@ class Out
|
||||
echo $this->get($string, $foreground_color, $background_color) . "\n";
|
||||
}
|
||||
|
||||
public function inLine($string, $foreground_color = null, $background_color = null): void
|
||||
{
|
||||
echo $this->get($string, $foreground_color, $background_color) ;
|
||||
}
|
||||
|
||||
// Returns all foreground color names
|
||||
public function getForegroundColors()
|
||||
{
|
||||
@ -75,4 +82,16 @@ class Out
|
||||
{
|
||||
return array_keys($this->background_colors);
|
||||
}
|
||||
|
||||
// public function printHeaderTable(): void
|
||||
// {
|
||||
// echo "\n+-----------------------------+-----------------------------+-----------------------------+-----------------------------+\n";
|
||||
// printf("%-30s", "| Routs");
|
||||
// printf("%-30s", "| Description");
|
||||
// printf("%-30s", "| Params");
|
||||
// printf("%-30s", "| Params description");
|
||||
// printf("%-30s", "|");
|
||||
// echo "\n+-----------------------------+-----------------------------+-----------------------------+-----------------------------+\n";
|
||||
// }
|
||||
|
||||
}
|
Reference in New Issue
Block a user