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

31 lines
1.1 KiB
C#
Raw Normal View History

2016-11-15 15:42:15 -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;
2016-11-15 15:42:15 -08:00
using System.Collections.Generic;
using Microsoft.DotNet.Cli;
2016-11-15 15:42:15 -08:00
using Microsoft.DotNet.Cli.CommandLine;
2016-11-15 16:41:29 -08:00
using Microsoft.DotNet.Tools.Add.ProjectToProjectReference;
using Microsoft.DotNet.Tools.Add.ProjectToSolution;
2016-11-15 15:42:15 -08:00
namespace Microsoft.DotNet.Tools.Add
{
public class AddCommand : DotNetTopLevelCommandBase
2016-11-15 15:42:15 -08:00
{
protected override string CommandName => "add";
protected override string FullCommandNameLocalized => LocalizableStrings.NetAddCommand;
internal override List<Func<CommandLineApplication, CommandLineApplication>> SubCommands =>
new List<Func<CommandLineApplication, CommandLineApplication>>
{
AddProjectToSolutionCommand.CreateApplication,
AddProjectToProjectReferenceCommand.CreateApplication,
};
public static int Run(string[] args)
{
var command = new AddCommand();
return command.RunCommand(args);
}
2016-11-15 15:42:15 -08:00
}
}