Exemple #1
0
 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) {
         Command_Line::quit("Third argument to command 'add-time' should be a number");
     }
     Command_Line::addTimeEntry($client, $auth, $issue_id, $check);
     break;
 case 'list-files':
 case 'lf':
     Command_Line::printFileList($client, $auth, $issue_id);
     break;
 case 'get-file':
 case 'gf':
     if (count($argv) == 3) {
         Command_Line::quit('Missing parameter for the file number');
     }
     Command_Line::getFile($client, $auth, $issue_id, $argv[3]);
     break;
 case 'close':
     Command_Line::closeIssue($client, $auth, $issue_id);
     break;