コード例 #1
0
ファイル: Help.php プロジェクト: VonUniGE/consh
 /**
  *
  */
 public function run($args)
 {
     $cli = new CLImate();
     $cli->out("You have reached the help desk");
     $command = CommandParser::getCommandObject($args[0]);
     return $command->help();
 }
コード例 #2
0
ファイル: consh.php プロジェクト: VonUniGE/consh
<?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);