dotnet-installer/src/dotnet/commands/dotnet-remove/Program.cs

31 lines
1.2 KiB
C#
Raw Normal View History

// 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;
using Microsoft.DotNet.Cli;
using Microsoft.DotNet.Cli.CommandLine;
2016-12-15 13:40:46 -08:00
using Microsoft.DotNet.Tools.Remove.ProjectFromSolution;
using Microsoft.DotNet.Tools.Remove.ProjectToProjectReference;
namespace Microsoft.DotNet.Tools.Remove
{
public class RemoveCommand : DotNetTopLevelCommandBase
{
protected override string CommandName => "remove";
protected override string FullCommandNameLocalized => LocalizableStrings.NetRemoveCommand;
internal override List<Func<CommandLineApplication, CommandLineApplication>> SubCommands =>
new List<Func<CommandLineApplication, CommandLineApplication>>
{
2016-12-15 13:40:46 -08:00
RemoveProjectFromSolutionCommand.CreateApplication,
RemoveProjectToProjectReferenceCommand.CreateApplication,
};
public static int Run(string[] args)
{
var command = new RemoveCommand();
return command.RunCommand(args);
}
}
}