/** * */ public function run($args) { $cli = new CLImate(); $cli->out("You have reached the help desk"); $command = CommandParser::getCommandObject($args[0]); return $command->help(); }
<?php require 'vendor/autoload.php'; require 'includes/autoload.php'; require 'includes/init.php'; $args = array(); if (count($argv) < 2) { $help = new \Consh\Core\Commands\Help(); $help->showDefaultHelp(); exit; } else { if (count($argv) > 2) { $args = array_slice($argv, 2); } } $userCommand = $argv[1]; \Consh\Core\CommandParser::run($userCommand, $args);