Fixed init
This commit is contained in:
parent
5c7b975160
commit
64978a7a89
2 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ class InitCommand extends Command {
|
||||||
await _cloneRepo(projectDir);_pen.green();
|
await _cloneRepo(projectDir);_pen.green();
|
||||||
_pen("${Icon.CHECKMARK} Successfully initialized Angel project. Now running pub get...");
|
_pen("${Icon.CHECKMARK} Successfully initialized Angel project. Now running pub get...");
|
||||||
_pen();
|
_pen();
|
||||||
await _pubGet();
|
await _pubGet(projectDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
_cloneRepo(Directory projectDir) async {
|
_cloneRepo(Directory projectDir) async {
|
||||||
|
@ -66,8 +66,8 @@ class InitCommand extends Command {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_pubGet() async {
|
_pubGet(Directory projectDir) async {
|
||||||
var pub = await Process.start("pub", ["get"]);
|
var pub = await Process.start("pub", ["get"], workingDirectory: projectDir.absolute.path);
|
||||||
pub.stdout.pipe(stdout);
|
pub.stdout.pipe(stdout);
|
||||||
pub.stderr.pipe(stderr);
|
pub.stderr.pipe(stderr);
|
||||||
var code = await pub.exitCode;
|
var code = await pub.exitCode;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel_cli
|
name: angel_cli
|
||||||
version: 1.0.0-dev+1
|
version: 1.0.0-dev+2
|
||||||
description: Command-line tools for the Angel framework.
|
description: Command-line tools for the Angel framework.
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/angel_cli
|
homepage: https://github.com/angel-dart/angel_cli
|
||||||
|
|
Loading…
Reference in a new issue