2016-12-07 12:56:27 -08:00
|
|
|
|
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
|
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2016-12-13 14:31:35 -10:00
|
|
|
|
using Microsoft.DotNet.Cli;
|
2016-12-07 12:56:27 -08:00
|
|
|
|
using Microsoft.DotNet.Tools.List.ProjectToProjectReferences;
|
2016-12-16 06:41:47 -10:00
|
|
|
|
using Microsoft.DotNet.Tools.List.ProjectsInSolution;
|
2016-12-07 12:56:27 -08:00
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tools.List
|
|
|
|
|
{
|
2016-12-13 14:31:35 -10:00
|
|
|
|
public class ListCommand : DotNetTopLevelCommandBase
|
2016-12-07 12:56:27 -08:00
|
|
|
|
{
|
2016-12-13 14:31:35 -10:00
|
|
|
|
protected override string CommandName => "list";
|
|
|
|
|
protected override string FullCommandNameLocalized => LocalizableStrings.NetListCommand;
|
2016-12-16 10:23:26 -08:00
|
|
|
|
internal override List<Func<DotNetSubCommandBase>> SubCommands =>
|
|
|
|
|
new List<Func<DotNetSubCommandBase>>
|
2016-12-13 14:31:35 -10:00
|
|
|
|
{
|
2016-12-16 10:23:26 -08:00
|
|
|
|
ListProjectsInSolutionCommand.Create,
|
|
|
|
|
ListProjectToProjectReferencesCommand.Create,
|
2016-12-13 14:31:35 -10:00
|
|
|
|
};
|
2016-12-07 12:56:27 -08:00
|
|
|
|
|
|
|
|
|
public static int Run(string[] args)
|
|
|
|
|
{
|
2016-12-13 14:31:35 -10:00
|
|
|
|
var command = new ListCommand();
|
|
|
|
|
return command.RunCommand(args);
|
2016-12-07 12:56:27 -08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|