From 64978a7a891b70f16a2c13bba90077e3004abdec Mon Sep 17 00:00:00 2001 From: thosakwe Date: Wed, 21 Sep 2016 19:47:50 -0400 Subject: [PATCH] Fixed init --- lib/src/commands/init.dart | 6 +++--- pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/commands/init.dart b/lib/src/commands/init.dart index 5cd2030..68adc2a 100644 --- a/lib/src/commands/init.dart +++ b/lib/src/commands/init.dart @@ -23,7 +23,7 @@ class InitCommand extends Command { await _cloneRepo(projectDir);_pen.green(); _pen("${Icon.CHECKMARK} Successfully initialized Angel project. Now running pub get..."); _pen(); - await _pubGet(); + await _pubGet(projectDir); } _cloneRepo(Directory projectDir) async { @@ -66,8 +66,8 @@ class InitCommand extends Command { } } - _pubGet() async { - var pub = await Process.start("pub", ["get"]); + _pubGet(Directory projectDir) async { + var pub = await Process.start("pub", ["get"], workingDirectory: projectDir.absolute.path); pub.stdout.pipe(stdout); pub.stderr.pipe(stderr); var code = await pub.exitCode; diff --git a/pubspec.yaml b/pubspec.yaml index 7743275..ec84e24 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: angel_cli -version: 1.0.0-dev+1 +version: 1.0.0-dev+2 description: Command-line tools for the Angel framework. author: Tobe O homepage: https://github.com/angel-dart/angel_cli