mirror of https://github.com/YGGverse/YGGo.git
phpyggdrasilcrawlermysqljs-lessalt-websphinxspideropen-sourcedistributedwebsearch-enginefts5privacy-orientedsphinxsearchfederativeweb-archivepdocurlparser
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
669 B
34 lines
669 B
<?php |
|
|
|
class CLI { |
|
|
|
public static function brake() { |
|
|
|
echo PHP_EOL; |
|
} |
|
|
|
public static function default(string $string) { |
|
|
|
echo sprintf("%s", $string) . self::brake(); |
|
} |
|
|
|
public static function notice(string $string) { |
|
|
|
echo sprintf("\033[36m%s\033[0m", $string) . self::brake(); |
|
} |
|
|
|
public static function warning(string $string) { |
|
|
|
echo sprintf("\033[33m%s\033[0m", $string) . self::brake(); |
|
} |
|
|
|
public static function danger(string $string) { |
|
|
|
echo sprintf("\033[31m%s\033[31m", $string) . self::brake(); |
|
} |
|
|
|
public static function success(string $string) { |
|
|
|
echo sprintf("\033[32m%s\033[32m", $string) . self::brake(); |
|
} |
|
} |