protected override ICommandResult ProcessCommand(IContext context)
{
var arguments = CollectAndValidateArguments(context.Arguments,
issueList => JiraParamValidator.MultipleIssueId,
labelOperations => JiraParamValidator.LabelOperations
);
var operations = arguments["labelOperations"];
var issueKeys = arguments["issueList"].Values;
if (!operations.IsPresent)
{
return RetrieveLabelList(issueKeys);
}
return ProcessLabelUpdateOperations(issueKeys, ParseLabelOperations(operations));
}