Пример #1
0
     if (count($argv) == 3) {
         Command_Line::quit('Missing parameter for the draft number');
     }
     Command_Line::printDraft($client, $auth, $issue_id, $argv[3]);
     break;
 case 'send-draft':
 case 'sd':
     // viewing a draft
     if (count($argv) == 3) {
         Command_Line::quit('Missing parameter for the draft number');
     }
     Command_Line::sendDraft($client, $auth, $issue_id, $argv[3]);
     break;
 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: