refact
This commit is contained in:
parent
36e1137e50
commit
b6098c28a6
6 changed files with 53 additions and 56 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue