mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-03 10:25:52 +00:00
fix method name
This commit is contained in:
parent
0c2b42eff1
commit
43f53f0967
@ -332,7 +332,7 @@ CLI::default(' \ / / __/ / __/ __ \/ /' );
|
|||||||
CLI::default(' / / /_/ / /_/ / /_/ /_/' );
|
CLI::default(' / / /_/ / /_/ / /_/ /_/' );
|
||||||
CLI::default('/_/\____/\____/\____(_)' );
|
CLI::default('/_/\____/\____/\____(_)' );
|
||||||
|
|
||||||
CLI::brake();
|
CLI::break();
|
||||||
CLI::default('available options:');
|
CLI::default('available options:');
|
||||||
|
|
||||||
CLI::default(' help - this message');
|
CLI::default(' help - this message');
|
||||||
@ -342,6 +342,9 @@ CLI::default(' snap reindex [purge] - sync DB/FS relations. optiona
|
|||||||
CLI::default(' hostPage rank reindex - generate rank indexes in hostPage table');
|
CLI::default(' hostPage rank reindex - generate rank indexes in hostPage table');
|
||||||
CLI::default(' hostPageDom generate [selectors] - make hostPageDom index based on related hostPage.data field');
|
CLI::default(' hostPageDom generate [selectors] - make hostPageDom index based on related hostPage.data field');
|
||||||
CLI::default(' hostPageDom truncate - flush hostPageDom table');
|
CLI::default(' hostPageDom truncate - flush hostPageDom table');
|
||||||
CLI::brake();
|
CLI::break();
|
||||||
|
|
||||||
CLI::default('get support: https://github.com/YGGverse/YGGo/issues');
|
CLI::default('get support: https://github.com/YGGverse/YGGo/issues');
|
||||||
|
|
||||||
|
CLI::break();
|
||||||
|
CLI::break();
|
||||||
|
@ -2,33 +2,33 @@
|
|||||||
|
|
||||||
class CLI {
|
class CLI {
|
||||||
|
|
||||||
public static function brake() {
|
public static function break() {
|
||||||
|
|
||||||
echo PHP_EOL;
|
echo PHP_EOL;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function default(string $string) {
|
public static function default(string $string) {
|
||||||
|
|
||||||
echo sprintf("%s", $string) . self::brake();
|
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::brake();
|
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::brake();
|
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::brake();
|
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::brake();
|
echo sprintf("\033[32m%s\033[0m", $string) . self::break();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user