Exemplo n.º 1
0
 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]);
     break;
 case 'add-time':
 case 'at':
     if (count($argv) == 3) {
         Command_Line::quit('Missing parameter for time worked');
     }
     $check = (int) $argv[3];
     if ($check == 0) {