2016-07-26 04:29:59 +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.
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.DotNet.Cli.Build
|
|
|
|
|
{
|
|
|
|
|
public class DotNetNew : DotNetTool
|
|
|
|
|
{
|
|
|
|
|
protected override string Command
|
|
|
|
|
{
|
|
|
|
|
get { return "new"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override string Args
|
|
|
|
|
{
|
2016-12-27 21:28:24 +00:00
|
|
|
|
get { return $"{GetTemplateType()}"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string TemplateType { get; set; }
|
|
|
|
|
|
|
|
|
|
private string GetTemplateType()
|
|
|
|
|
{
|
|
|
|
|
if (!string.IsNullOrEmpty(TemplateType))
|
|
|
|
|
{
|
|
|
|
|
return $"--type {TemplateType}";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
2016-07-26 04:29:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|