// 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.Collections.Generic; using Microsoft.DotNet.Cli.CommandLine; using Microsoft.DotNet.Cli.Utils; using System; using System.IO; using System.Linq; using Microsoft.Build.Construction; using Microsoft.DotNet.ProjectJsonMigration; using NuGet.Frameworks; using Microsoft.DotNet.Tools.Remove.ProjectToProjectReference; namespace Microsoft.DotNet.Tools.Remove { public class RemoveCommand : DispatchCommand { protected override string HelpText => $@"{LocalizableStrings.NetRemoveCommand}; {LocalizableStrings.Usage}: dotnet remove [options] [[--] ...]] {LocalizableStrings.Options}: -h|--help {LocalizableStrings.HelpDefinition} {LocalizableStrings.Arguments}: {LocalizableStrings.ArgumentsObjectDefinition} {LocalizableStrings.ArgumentsCommandDefinition} Args: {LocalizableStrings.ArgsDefinition} {LocalizableStrings.Commands}: p2p {LocalizableStrings.CommandP2PDefinition}"; protected override Dictionary> BuiltInCommands => new Dictionary> { ["p2p"] = RemoveProjectToProjectReferenceCommand.Run, }; public static int Run(string[] args) { var cmd = new RemoveCommand(); return cmd.Start(args); } } }