dotnet-init --> dotnet new

Fixes issue #374
This commit is contained in:
piotrp 2015-12-03 02:16:52 -08:00 committed by PiotrP
parent 88806eb7de
commit 568eb3aae7
10 changed files with 10 additions and 10 deletions

View file

@ -38,7 +38,7 @@
"bin/dotnet-compile" : "usr/bin/dotnet-compile",
"bin/dotnet-compile-csc" : "usr/bin/dotnet-compile-csc",
"bin/dotnet-compile-native" : "/usr/bin/dotnet-compile-native",
"bin/dotnet-init":"usr/bin/dotnet-init",
"bin/dotnet-init":"usr/bin/dotnet-new",
"bin/dotnet-publish" : "usr/bin/dotnet-publish",
"bin/dotnet-repl" : "usr/bin/dotnet-repl",
"bin/dotnet-repl-csi" : "usr/bin/dotnet-repl-csi",

View file

@ -16,7 +16,7 @@ $Projects = @(
"Microsoft.DotNet.Tools.Compiler",
"Microsoft.DotNet.Tools.Compiler.Csc",
"Microsoft.DotNet.Tools.Compiler.Native",
"Microsoft.DotNet.Tools.Init",
"Microsoft.DotNet.Tools.New",
"Microsoft.DotNet.Tools.Pack",
"Microsoft.DotNet.Tools.Publish",
"Microsoft.DotNet.Tools.Repl",

View file

@ -28,7 +28,7 @@ PROJECTS=( \
Microsoft.DotNet.Tools.Compiler \
Microsoft.DotNet.Tools.Compiler.Csc \
Microsoft.DotNet.Tools.Compiler.Native \
Microsoft.DotNet.Tools.Init \
Microsoft.DotNet.Tools.New \
Microsoft.DotNet.Tools.Pack \
Microsoft.DotNet.Tools.Publish \
Microsoft.DotNet.Tools.Repl \

View file

@ -22,7 +22,7 @@ Common Options (passed before the command):
-v|--verbose Enable verbose output
Common Commands:
init Initialize a basic .NET project
new Initialize a basic .NET project
restore Restore dependencies specified in the .NET project
compile Compiles a .NET project
publish Publishes a .NET project for deployment (including the runtime)

View file

@ -7,7 +7,7 @@ using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace Microsoft.DotNet.Tools.Init
namespace Microsoft.DotNet.Tools.New
{
public class Program
{
@ -72,13 +72,13 @@ namespace Microsoft.DotNet.Tools.Init
DebugHelper.HandleDebugSwitch(ref args);
var app = new CommandLineApplication();
app.Name = "dotnet init";
app.Name = "dotnet new";
app.FullName = ".NET Initializer";
app.Description = "Initializes empty project for .NET Platform";
app.HelpOption("-h|--help");
var dotnetInit = new Program();
app.OnExecute((Func<int>)dotnetInit.CreateEmptyProject);
var dotnetNew = new Program();
app.OnExecute((Func<int>)dotnetNew.CreateEmptyProject);
try
{

View file

@ -1,5 +1,5 @@
{
"name": "dotnet-init",
"name": "dotnet-new",
"version": "1.0.0-*",
"compilationOptions": {
"emitEntryPoint": true

View file

@ -115,7 +115,7 @@ namespace ConsoleApplication
Directory.SetCurrentDirectory(TestDirectory);
TestRunCommand("dotnet", "init");
TestRunCommand("dotnet", "new");
TestRunCommand("dotnet", "restore --quiet");
}