2016-11-29 09:44:39 -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.
|
|
|
|
|
|
2016-12-13 14:31:35 -10:00
|
|
|
|
using System;
|
2016-11-29 09:44:39 -08:00
|
|
|
|
using System.Collections.Generic;
|
2016-12-13 14:31:35 -10:00
|
|
|
|
using Microsoft.DotNet.Cli;
|
2016-11-29 09:44:39 -08:00
|
|
|
|
using Microsoft.DotNet.Cli.CommandLine;
|
2016-12-15 13:40:46 -08:00
|
|
|
|
using Microsoft.DotNet.Tools.Remove.ProjectFromSolution;
|
2016-11-29 09:44:39 -08:00
|
|
|
|
using Microsoft.DotNet.Tools.Remove.ProjectToProjectReference;
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Tools.Remove
|
|
|
|
|
{
|
2016-12-13 14:31:35 -10:00
|
|
|
|
public class RemoveCommand : DotNetTopLevelCommandBase
|
2016-11-29 09:44:39 -08:00
|
|
|
|
{
|
2016-12-13 14:31:35 -10:00
|
|
|
|
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,
|
2016-12-13 14:31:35 -10:00
|
|
|
|
RemoveProjectToProjectReferenceCommand.CreateApplication,
|
|
|
|
|
};
|
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 RemoveCommand();
|
|
|
|
|
return command.RunCommand(args);
|
2016-12-07 12:56:27 -08:00
|
|
|
|
}
|
2016-11-29 09:44:39 -08:00
|
|
|
|
}
|
|
|
|
|
}
|