$shell_class) { $ls[] = Console::setColor($shell_name, 'green') . ":\t" . $shell_class['description']; } return $ls; } public function isShellExists($name) { return array_key_exists($name, ZMConfig::get('shell_list')); } public function getShellCommand($name) { $d = ZMConfig::get('shell_list')[$name]['command'] ?? null; if ($d === null) { return 'echo "command not found"'; } return $d; } }