public static async Task <IJiraReport?> GetReportByName(string?reportName)
        {
            var availableReports = ReportEngineService.GetReports();

            return(string.IsNullOrEmpty(reportName) ?
                   await ConsoleI.Select(availableReports) :
                   availableReports.FirstOrDefault(e => e?.Name == reportName));
        }
        private static async Task DeleteSprint(string profile)
        {
            var service = await ProfileHelpers.GetJiraSprintService(profile);

            IEnumerable <IJiraSprint> sprintList = service?.GetSprints() ??
                                                   new List <JiraSprint>();

            if (sprintList.Count() == 0)
            {
                Console.WriteLine("Can't find any sprint to delete");
                return;
            }

            var toDelete = await ConsoleI.Select(sprintList, sprintList.Count());

            var deleted = toDelete.Select(
                s => service?.DeleteSprint(s.Name) ?? false)
                          .Select(t => t ? 1 : 0)
                          .Sum();

            Console.WriteLine($"Deleted {deleted} entries");
        }