platform-cli/bin/angel.dart
2016-09-14 00:33:28 -04:00

22 lines
560 B
Dart

#!/usr/bin/env dart
library angel_cli.tool;
import "dart:io";
import "package:args/command_runner.dart";
import 'package:angel_cli/angel_cli.dart';
final String DOCTOR = "doctor";
main(List<String> args) {
var runner =
new CommandRunner("angel", "Command-line tools for the Angel framework.");
runner.addCommand(new DoctorCommand());
runner.addCommand(new ServiceCommand());
return runner.run(args).then((_) {}).catchError((exc, st) {
stderr.writeln("Oops, something went wrong: $exc");
stderr.writeln(st);
exitCode = 1;
});
}