Exemplo n.º 1
0
 if ($issue_id > 0) {
     if (count($argv) == 2) {
         Command_Line::printIssueDetails($client, $auth, $issue_id);
     } else {
         if ($should_confirm) {
             Command_Line::promptConfirmation($client, $auth, $issue_id, @$argv);
         }
         switch ($argv[2]) {
             case 'assign':
                 if (count($argv) == 3) {
                     Command_Line::quit('Missing parameter for the developer');
                 }
                 Command_Line::assignIssue($client, $auth, $issue_id, $argv[3]);
                 break;
             case 'take':
                 Command_Line::takeIssue($client, $auth, $issue_id);
                 break;
             case 'add-replier':
             case 'ar':
                 // adds a user to the list of authorized repliers
                 if (count($argv) == 3) {
                     Command_Line::quit('Missing parameter for the developer');
                 }
                 Command_Line::addAuthorizedReplier($client, $auth, $issue_id, $argv[3]);
                 break;
             case 'set-status':
             case 'ss':
                 if (count($argv) == 3) {
                     Command_Line::quit('Missing parameter for the status');
                 }
                 Command_Line::setIssueStatus($client, $auth, $issue_id, $argv[3]);