platform/bin/angel.dart
thosakwe 8ad5fff04c 19
2017-02-01 17:56:04 -05:00

28 lines
750 B
Dart

#!/usr/bin/env dart
library demon.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())
..addCommand(new KeyCommand())
..addCommand(new ServiceCommand())
..addCommand(new InitCommand())
..addCommand(new TestCommand())
..addCommand(new PluginCommand())
..addCommand(new StartCommand())
..addCommand(new RenameCommand());
return runner.run(args).then((_) {}).catchError((exc) {
stderr.writeln("Oops, something went wrong: $exc");
exitCode = 1;
});
}