add doctor command

This commit is contained in:
crazywhalecc
2023-04-22 21:23:12 +08:00
parent 4c0d35c723
commit 528ad1199a
11 changed files with 334 additions and 27 deletions

View File

@@ -13,9 +13,9 @@ class UnixShell
private bool $debug;
public function __construct()
public function __construct(?bool $debug = null)
{
$this->debug = defined('DEBUG_MODE');
$this->debug = $debug ?? defined('DEBUG_MODE');
}
public function cd(string $dir): UnixShell