|
|
|
@ -34,7 +34,7 @@ namespace nuget_cli
|
|
|
|
|
{ "h|help", "show this message and exit", h => shouldShowSourceHelp = h != null },
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var commandSet = new CommandSet("yaget-cli");
|
|
|
|
|
var commandSet = new CommandSet("isn");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var srclst = new Command("list")
|
|
|
|
@ -45,27 +45,28 @@ namespace nuget_cli
|
|
|
|
|
{
|
|
|
|
|
Run = sargs => SourceAdd(sargs)
|
|
|
|
|
};
|
|
|
|
|
var srcCmd = new Command("source")
|
|
|
|
|
var srcCmd = new Command("sources")
|
|
|
|
|
{
|
|
|
|
|
Run = sargs =>
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var sourcesCmdSet = new CommandSet("sources")
|
|
|
|
|
{
|
|
|
|
|
srclst,
|
|
|
|
|
srcadd
|
|
|
|
|
};
|
|
|
|
|
var pargs = sourceoptions.Parse(sargs);
|
|
|
|
|
if (shouldShowSourceHelp)
|
|
|
|
|
{
|
|
|
|
|
// output the options
|
|
|
|
|
Console.WriteLine("Push Options:");
|
|
|
|
|
Console.WriteLine("Sources Options:");
|
|
|
|
|
sourceoptions.WriteOptionDescriptions(Console.Out);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
sourcesCmdSet.Run(pargs);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var sourceCmdSet = new CommandSet("source")
|
|
|
|
|
{
|
|
|
|
|
srclst,
|
|
|
|
|
srcadd
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var add = new Command("add")
|
|
|
|
|
{
|
|
|
|
|
Run = sargs => Add(sargs)
|
|
|
|
@ -96,7 +97,7 @@ namespace nuget_cli
|
|
|
|
|
Run = sargs => StoreApiKey(sargs)
|
|
|
|
|
};
|
|
|
|
|
commandSet.Add(setapikey);
|
|
|
|
|
|
|
|
|
|
commandSet.Add(srcCmd);
|
|
|
|
|
|
|
|
|
|
List<string> extra;
|
|
|
|
|
try
|
|
|
|
|