mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-08 22:07:56 +00:00
34 lines
667 B
PHP
34 lines
667 B
PHP
<?php
|
|
|
|
class CLI {
|
|
|
|
public static function break() {
|
|
|
|
echo PHP_EOL;
|
|
}
|
|
|
|
public static function default(string $string) {
|
|
|
|
echo sprintf("%s", $string) . self::break();
|
|
}
|
|
|
|
public static function notice(string $string) {
|
|
|
|
echo sprintf("\033[36m%s\033[0m", $string) . self::break();
|
|
}
|
|
|
|
public static function warning(string $string) {
|
|
|
|
echo sprintf("\033[33m%s\033[0m", $string) . self::break();
|
|
}
|
|
|
|
public static function danger(string $string) {
|
|
|
|
echo sprintf("\033[31m%s\033[0m", $string) . self::break();
|
|
}
|
|
|
|
public static function success(string $string) {
|
|
|
|
echo sprintf("\033[32m%s\033[0m", $string) . self::break();
|
|
}
|
|
} |