refact & client install notes

This commit is contained in:
Paul Schneider
2021-07-11 20:04:12 +01:00
parent 451d810ade
commit 5e74b24439
2 changed files with 24 additions and 13 deletions

View File

@ -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