update docs and change console command suitable

This commit is contained in:
crazywhalecc
2021-01-07 16:01:01 +08:00
parent 0972a1959e
commit ccadec23e4
10 changed files with 815 additions and 4 deletions

View File

@@ -255,6 +255,7 @@ class Framework
}
break;
case 'disable-console-input':
case 'no-interaction':
if ($y) $terminal_id = null;
break;
case 'log-error':
@@ -267,6 +268,7 @@ class Framework
if ($y) Console::setLevel(2);
break;
case 'log-verbose':
case 'verbose':
if ($y) Console::setLevel(3);
break;
case 'log-debug':
@@ -277,6 +279,10 @@ class Framework
Console::$theme = $y;
}
break;
default:
Console::info("Calculating ".$x);
dump($y);
break;
}
}
if ($coroutine_mode) Runtime::enableCoroutine(true, SWOOLE_HOOK_ALL);