default to embarkDApp as the new dapp

This commit is contained in:
Iuri Matias 2017-06-27 15:45:30 -04:00
parent 886c5d879f
commit cbf6f6ec5c
1 changed files with 2 additions and 3 deletions

View File

@ -45,9 +45,8 @@ class Cmd {
.description('new application') .description('new application')
.action(function (name) { .action(function (name) {
if (name === undefined) { if (name === undefined) {
let parentDirectory = path.dirname(__dirname).split("/").pop(); return promptly.prompt("Name your app (default is embarkDApp):", {
return promptly.prompt("Name your app (default is " + parentDirectory + "):", { default: "embarkDApp",
default: parentDirectory,
validator: validateName validator: validateName
}, function (err, inputvalue) { }, function (err, inputvalue) {
if (err) { if (err) {