isn/src/nuget-cli/Program.Commands.cs

50 lines
1.2 KiB
C#
Raw Normal View History

2021-05-10 21:32:29 +01:00
using System;
using System.Collections.Generic;
2021-05-13 23:05:19 +01:00
using System.ComponentModel.DataAnnotations;
2021-05-10 23:03:59 +01:00
using System.Threading.Tasks;
2021-05-10 21:32:29 +01:00
namespace nuget_cli
{
2021-05-13 23:05:19 +01:00
[Display(Name="nuget_cli")]
2021-05-10 21:32:29 +01:00
partial class Program
{
private static void SourceList(IEnumerable<string> sargs)
{
throw new NotImplementedException();
}
private static object SourceAdd(IEnumerable<string> str)
{
throw new NotImplementedException();
}
private static object Add(IEnumerable<string> str)
{
throw new NotImplementedException();
}
2021-05-10 23:03:59 +01:00
private static async Task<List<PushReport>> PushPkgAsync(IEnumerable<string> pkgs)
2021-05-10 21:32:29 +01:00
{
2021-05-10 23:03:59 +01:00
List<PushReport> pushReports = new List<PushReport>();
2021-05-10 21:36:08 +01:00
foreach (string pkg in pkgs)
{
2021-05-10 23:03:59 +01:00
var report = await PushCommand.RunAsync(pkg,source,apiKey);
pushReports.Add(report);
2021-05-10 21:36:08 +01:00
}
2021-05-10 23:03:59 +01:00
return pushReports;
2021-05-10 21:32:29 +01:00
}
private static object StoreApiKey(IEnumerable<string> str)
{
throw new NotImplementedException();
}
private static string LocalizeThis(string arg)
{
return arg;
}
}
}