2017-08-08 01:45:37 +00:00
|
|
|
import 'package:args/command_runner.dart';
|
|
|
|
import 'make/controller.dart';
|
|
|
|
import 'make/model.dart';
|
|
|
|
import 'make/plugin.dart';
|
|
|
|
import 'make/service.dart';
|
|
|
|
import 'make/test.dart';
|
|
|
|
|
|
|
|
class MakeCommand extends Command {
|
|
|
|
@override
|
|
|
|
String get name => 'make';
|
|
|
|
|
|
|
|
@override
|
2018-07-14 22:43:10 +00:00
|
|
|
String get description =>
|
|
|
|
'Generates common code for your project, such as projects and controllers.';
|
2017-08-08 01:45:37 +00:00
|
|
|
|
|
|
|
MakeCommand() {
|
|
|
|
addSubcommand(new ControllerCommand());
|
|
|
|
addSubcommand(new ModelCommand());
|
|
|
|
addSubcommand(new PluginCommand());
|
|
|
|
addSubcommand(new TestCommand());
|
|
|
|
addSubcommand(new ServiceCommand());
|
|
|
|
}
|
2018-07-14 22:43:10 +00:00
|
|
|
}
|