This commit is contained in:
Paul Schneider 2021-05-10 23:03:59 +01:00
commit b6098c28a6
6 changed files with 53 additions and 56 deletions

View file

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace nuget_cli
{
@ -21,12 +22,17 @@ namespace nuget_cli
throw new NotImplementedException();
}
private static object PushPkg(IEnumerable<string> pkgs)
private static async Task<List<PushReport>> PushPkgAsync(IEnumerable<string> pkgs)
{
List<PushReport> pushReports = new List<PushReport>();
foreach (string pkg in pkgs)
{
var report = await PushCommand.RunAsync(pkg,source,apiKey);
pushReports.Add(report);
}
return pushReports;
}
private static object StoreApiKey(IEnumerable<string> str)