1.0.8
This commit is contained in:
parent
ac181b2242
commit
0daa67f510
2 changed files with 20 additions and 15 deletions
|
@ -25,6 +25,8 @@ main(List<String> args) async {
|
||||||
..addCommand(new RenameCommand());
|
..addCommand(new RenameCommand());
|
||||||
|
|
||||||
stdout.write('Checking for update... ');
|
stdout.write('Checking for update... ');
|
||||||
|
|
||||||
|
try {
|
||||||
var client = new http.Client();
|
var client = new http.Client();
|
||||||
var update = await checkForUpdate(client);
|
var update = await checkForUpdate(client);
|
||||||
client.close();
|
client.close();
|
||||||
|
@ -40,6 +42,9 @@ main(List<String> args) async {
|
||||||
stdout.writeln();
|
stdout.writeln();
|
||||||
} else
|
} else
|
||||||
stdout.writeln('No update available.');
|
stdout.writeln('No update available.');
|
||||||
|
} catch (e) {
|
||||||
|
stdout.writeln('Failed to check for update.');
|
||||||
|
}
|
||||||
|
|
||||||
return await runner.run(args).then((_) {}).catchError((exc) {
|
return await runner.run(args).then((_) {}).catchError((exc) {
|
||||||
stderr.writeln("Oops, something went wrong: $exc");
|
stderr.writeln("Oops, something went wrong: $exc");
|
||||||
|
|
|
@ -2,7 +2,7 @@ author: "Tobe O <thosakwe@gmail.com>"
|
||||||
description: "Command-line tools for the Angel framework."
|
description: "Command-line tools for the Angel framework."
|
||||||
homepage: "https://github.com/angel-dart/angel_cli"
|
homepage: "https://github.com/angel-dart/angel_cli"
|
||||||
name: "angel_cli"
|
name: "angel_cli"
|
||||||
version: "1.0.7"
|
version: "1.0.8"
|
||||||
dependencies:
|
dependencies:
|
||||||
# analyzer: "^0.29.0"
|
# analyzer: "^0.29.0"
|
||||||
args: "^0.13.7"
|
args: "^0.13.7"
|
||||||
|
|
Loading…
Reference in a new issue