move subcommands to new parser
This commit is contained in:
parent
d3319adb59
commit
a3f536c248
20 changed files with 307 additions and 395 deletions
|
@ -4,6 +4,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.DotNet.Cli;
|
||||
using Microsoft.DotNet.Cli.CommandLine;
|
||||
using Microsoft.DotNet.Cli.Utils;
|
||||
using Microsoft.DotNet.Tools.List.ProjectToProjectReferences;
|
||||
|
||||
|
@ -15,10 +16,11 @@ namespace Microsoft.DotNet.Tools.List
|
|||
protected override string FullCommandNameLocalized => LocalizableStrings.NetListCommand;
|
||||
protected override string ArgumentName => Constants.ProjectArgumentName;
|
||||
protected override string ArgumentDescriptionLocalized => CommonLocalizableStrings.ArgumentsProjectDescription;
|
||||
internal override List<Func<DotNetSubCommandBase>> SubCommands =>
|
||||
new List<Func<DotNetSubCommandBase>>
|
||||
|
||||
internal override Dictionary<string, Func<AppliedOption, CommandBase>> SubCommands =>
|
||||
new Dictionary<string, Func<AppliedOption, CommandBase>>
|
||||
{
|
||||
ListProjectToProjectReferencesCommand.Create,
|
||||
{ "list", o => new ListProjectToProjectReferencesCommand(o) }
|
||||
};
|
||||
|
||||
public static int Run(string[] args)
|
||||
|
@ -27,4 +29,4 @@ namespace Microsoft.DotNet.Tools.List
|
|||
return command.RunCommand(args);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue