2016-02-10 00:35:43 +00: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.Collections.Generic;
|
|
|
|
|
using NuGet.Frameworks;
|
|
|
|
|
|
2016-02-11 01:23:53 +00:00
|
|
|
|
namespace Microsoft.DotNet.Cli.Utils
|
2016-02-10 00:35:43 +00:00
|
|
|
|
{
|
|
|
|
|
public class DotNetCommandFactory : ICommandFactory
|
|
|
|
|
{
|
2016-02-06 02:55:15 +00:00
|
|
|
|
public ICommand Create(
|
|
|
|
|
string commandName,
|
|
|
|
|
IEnumerable<string> args,
|
|
|
|
|
NuGetFramework framework = null,
|
|
|
|
|
string configuration = Constants.DefaultConfiguration)
|
2016-02-10 00:35:43 +00:00
|
|
|
|
{
|
2016-02-06 02:55:15 +00:00
|
|
|
|
return Command.CreateDotNet(commandName, args, framework, configuration);
|
2016-02-10 00:35:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|