改名
This commit is contained in:
@@ -25,19 +25,19 @@ class DefaultCommand extends Command
|
|||||||
$param = $dtl->get('commandList');
|
$param = $dtl->get('commandList');
|
||||||
|
|
||||||
$last = '';
|
$last = '';
|
||||||
$lists = ["\vCommands\t" . '注释'];
|
$lists = ["Commands\t" . '注释'];
|
||||||
foreach ($param as $key => $val) {
|
foreach ($param as $key => $val) {
|
||||||
$split = explode(':', $key);
|
$split = explode(':', $key);
|
||||||
if (empty($last) && isset($split[0])) {
|
if (empty($last) && isset($split[0])) {
|
||||||
$lists[] = "\v\033[32;40;1;1m" . $split[0] . " \033[0m\t";
|
$lists[] = "\033[32;40;1;1m" . $split[0] . " \033[0m\t";
|
||||||
} else if (isset($split[0]) && $last != $split[0]) {
|
} else if (isset($split[0]) && $last != $split[0]) {
|
||||||
$lists[] = "\v\033[32;40;1;1m" . $split[0] . " \033[0m\t";
|
$lists[] = "\033[32;40;1;1m" . $split[0] . " \033[0m\t";
|
||||||
}
|
}
|
||||||
|
|
||||||
$last = $split[0] ?? '';
|
$last = $split[0] ?? '';
|
||||||
|
|
||||||
list($method, $ts) = $val;
|
list($method, $ts) = $val;
|
||||||
$lists[] = "\v\033[32;40;1;1m " . $key . " \033[0m\t" . $method;
|
$lists[] = "\033[32;40;1;1m " . $key . " \033[0m\t\v" . $method."\v";
|
||||||
}
|
}
|
||||||
return implode(PHP_EOL, $lists);
|
return implode(PHP_EOL, $lists);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user