Exemple #1
0
             case '--full':
                 // Display Issue Details + Issue Custom Fields
                 Command_Line::printIssueDetails($client, $auth, $issue_id, true);
                 break;
             case 'custom-fields':
             case 'cf':
                 // display custom fields
                 Command_Line::printIssueCustomFields($client, $auth, $issue_id);
                 break;
             case 'redeem':
                 // marking an issue as redeemed
                 Command_Line::redeemIssue($client, $auth, $issue_id);
                 break;
             case 'unredeem':
                 // unmarks issue as redeemed incident
                 Command_Line::unredeemIssue($client, $auth, $issue_id);
                 break;
             default:
                 Command_Line::quit("Unknown command '" . $argv[2] . "'");
         }
     }
 } else {
     if ($argv[1] == 'developers') {
         Command_Line::printDeveloperList($client, $auth);
     } elseif ($argv[1] == 'open-issues') {
         if (count($argv) == 3) {
             if (@$argv[2] == 'my') {
                 $show_all_issues = false;
                 $status = '';
             } else {
                 $show_all_issues = true;