mirror of https://github.com/embarklabs/embark.git
default to embarkDApp as the new dapp
This commit is contained in:
parent
886c5d879f
commit
cbf6f6ec5c
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue