Skip to content

Commit

Permalink
fix project create command param handling - name & dir are respected
Browse files Browse the repository at this point in the history
  • Loading branch information
busticated committed Jun 25, 2018
1 parent 1cf6d92 commit e9c4176
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cli/project_init.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,11 @@ class CLIProjectInitCommandSite extends ProjectInitCommandSite {
}

export function command(argv) {
const dir = argv.params.dir || process.cwd();
const site = new CLIProjectInitCommandSite(dir);
const cmd = new ProjectInitCommand();
const site = new CLIProjectInitCommandSite({
directory: argv.params.dir,
name: argv.name
});
return site.dialog()
.then((ready) => {
if (ready) {
Expand Down

0 comments on commit e9c4176

Please sign in to comment.