2017-08-08 01:45:37 +00:00
|
|
|
import 'package:args/command_runner.dart';
|
|
|
|
import 'make/controller.dart';
|
2018-12-31 16:29:40 +00:00
|
|
|
import 'make/migration.dart';
|
2017-08-08 01:45:37 +00:00
|
|
|
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() {
|
2021-02-16 02:10:09 +00:00
|
|
|
addSubcommand(ControllerCommand());
|
|
|
|
addSubcommand(MigrationCommand());
|
|
|
|
addSubcommand(ModelCommand());
|
|
|
|
addSubcommand(PluginCommand());
|
|
|
|
addSubcommand(TestCommand());
|
|
|
|
addSubcommand(ServiceCommand());
|
2017-08-08 01:45:37 +00:00
|
|
|
}
|
2018-07-14 22:43:10 +00:00
|
|
|
}
|