add dotnet list p2ps (#4929)
* add stub for dotnet list p2ps * apply review feedback * PR feedback: consistent method modifiers * apply missed review feedback * add test coverage and do not treat no p2ps as error * move private methods to the bottom, rename weird res name
This commit is contained in:
parent
d29925a689
commit
79e6126b2a
17 changed files with 448 additions and 3 deletions
|
@ -12,6 +12,7 @@ using Microsoft.DotNet.Tools.Add;
|
|||
using Microsoft.DotNet.Tools.Build;
|
||||
using Microsoft.DotNet.Tools.Clean;
|
||||
using Microsoft.DotNet.Tools.Help;
|
||||
using Microsoft.DotNet.Tools.List;
|
||||
using Microsoft.DotNet.Tools.Migrate;
|
||||
using Microsoft.DotNet.Tools.MSBuild;
|
||||
using Microsoft.DotNet.Tools.New;
|
||||
|
@ -32,17 +33,18 @@ namespace Microsoft.DotNet.Cli
|
|||
{
|
||||
private static Dictionary<string, Func<string[], int>> s_builtIns = new Dictionary<string, Func<string[], int>>
|
||||
{
|
||||
["add"] = (new AddCommand()).Run,
|
||||
["add"] = AddCommand.Run,
|
||||
["build"] = BuildCommand.Run,
|
||||
["clean"] = CleanCommand.Run,
|
||||
["help"] = HelpCommand.Run,
|
||||
["list"] = ListCommand.Run,
|
||||
["migrate"] = MigrateCommand.Run,
|
||||
["msbuild"] = MSBuildCommand.Run,
|
||||
["new"] = NewCommand.Run,
|
||||
["nuget"] = NuGetCommand.Run,
|
||||
["pack"] = PackCommand.Run,
|
||||
["publish"] = PublishCommand.Run,
|
||||
["remove"] = (new RemoveCommand()).Run,
|
||||
["remove"] = RemoveCommand.Run,
|
||||
["restore"] = RestoreCommand.Run,
|
||||
["restore-projectjson"] = RestoreProjectJsonCommand.Run,
|
||||
["run"] = RunCommand.Run,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue