mirror of https://github.com/YGGverse/YGGo.git
ghost
1 year ago
1 changed files with 29 additions and 0 deletions
@ -0,0 +1,29 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
class CLI { |
||||||
|
|
||||||
|
public static function default(string $string) { |
||||||
|
|
||||||
|
echo sprintf("%s", $string) . PHP_EOL; |
||||||
|
} |
||||||
|
|
||||||
|
public static function notice(string $string) { |
||||||
|
|
||||||
|
echo sprintf("\033[36ms%s\033[0m", $string) . PHP_EOL; |
||||||
|
} |
||||||
|
|
||||||
|
public static function warning(string $string) { |
||||||
|
|
||||||
|
echo sprintf("\033[33m%s\033[0m", $string) . PHP_EOL; |
||||||
|
} |
||||||
|
|
||||||
|
public static function danger(string $string) { |
||||||
|
|
||||||
|
echo sprintf("\033[31m%s\033[31m", $string) . PHP_EOL; |
||||||
|
} |
||||||
|
|
||||||
|
public static function success(string $string) { |
||||||
|
|
||||||
|
echo sprintf("\033[32m%s\033[32m", $string) . PHP_EOL; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue