Binboo.Jira.Commands.LabelCommand.ExecuteCommand C# (CSharp) Method

ExecuteCommand() private static method

private static ExecuteCommand ( IEnumerable issueKeys, string>.Func commandBody, Func pipeProvider ) : ICommandResult
issueKeys IEnumerable
commandBody string>.Func
pipeProvider Func
return ICommandResult
        private static ICommandResult ExecuteCommand(IEnumerable<string> issueKeys, Func<string, string> commandBody, Func<IEnumerable<string>> pipeProvider)
        {
            var sb = new StringBuilder();
            foreach (var issueKey in issueKeys)
            {
                var currentIssue = issueKey;
                sb.AppendLine(Run( () => commandBody(currentIssue)));
            }

            return CommandResult.Success(sb.ToString(), pipeProvider());
        }