platform-cli/bin/angel.dart

23 lines
572 B
Dart
Raw Normal View History

2016-07-05 21:20:01 +00:00
#!/usr/bin/env dart
2016-07-05 21:19:02 +00:00
library angel_cli.tool;
2016-09-14 04:33:28 +00:00
import "dart:io";
import "package:args/command_runner.dart";
2016-07-05 21:19:02 +00:00
import 'package:angel_cli/angel_cli.dart';
2016-09-14 04:33:28 +00:00
final String DOCTOR = "doctor";
2016-07-05 21:19:02 +00:00
main(List<String> args) {
2016-09-14 04:33:28 +00:00
var runner =
new CommandRunner("angel", "Command-line tools for the Angel framework.");
runner.addCommand(new DoctorCommand());
runner.addCommand(new ServiceCommand());
2016-09-18 03:56:08 +00:00
runner.addCommand(new InitCommand());
2016-09-14 04:33:28 +00:00
2016-09-15 01:28:12 +00:00
return runner.run(args).then((_) {}).catchError((exc) {
2016-09-14 04:33:28 +00:00
stderr.writeln("Oops, something went wrong: $exc");
exitCode = 1;
});
}