mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-08-31 08:12:19 +00:00
fix line break return
This commit is contained in:
parent
6085677e67
commit
b2d7fb2fef
@ -9,26 +9,36 @@ class CLI {
|
|||||||
|
|
||||||
public static function default(string $string) {
|
public static function default(string $string) {
|
||||||
|
|
||||||
echo sprintf("%s", $string) . self::break();
|
echo sprintf("%s", $string);
|
||||||
|
|
||||||
|
self::break();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function notice(string $string) {
|
public static function notice(string $string) {
|
||||||
|
|
||||||
echo sprintf("\033[36m%s\033[0m", $string) . self::break();
|
echo sprintf("\033[36m%s\033[0m", $string);
|
||||||
|
|
||||||
|
self::break();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function warning(string $string) {
|
public static function warning(string $string) {
|
||||||
|
|
||||||
echo sprintf("\033[33m%s\033[0m", $string) . self::break();
|
echo sprintf("\033[33m%s\033[0m", $string);
|
||||||
|
|
||||||
|
self::break();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function danger(string $string) {
|
public static function danger(string $string) {
|
||||||
|
|
||||||
echo sprintf("\033[31m%s\033[0m", $string) . self::break();
|
echo sprintf("\033[31m%s\033[0m", $string);
|
||||||
|
|
||||||
|
self::break();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function success(string $string) {
|
public static function success(string $string) {
|
||||||
|
|
||||||
echo sprintf("\033[32m%s\033[0m", $string) . self::break();
|
echo sprintf("\033[32m%s\033[0m", $string);
|
||||||
|
|
||||||
|
self::break();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user