Formatting

This commit is contained in:
Tobe O 2018-07-14 18:43:10 -04:00
parent 2aeeafeb93
commit f05fbfad5e
6 changed files with 12 additions and 9 deletions

View file

@ -121,9 +121,11 @@ class InstallCommand extends Command {
var desc = val[key]['description'] ?? key; var desc = val[key]['description'] ?? key;
if (val[key]['type'] == 'prompt') { if (val[key]['type'] == 'prompt') {
values[key] = prompts.get(desc.toString(), defaultsTo: val[key]['default']?.toString()); values[key] = prompts.get(desc.toString(),
defaultsTo: val[key]['default']?.toString());
} else if (val[key]['type'] == 'choice') { } else if (val[key]['type'] == 'choice') {
values[key] = prompts.choose(desc.toString(), val[key]['choices'] as Iterable); values[key] = prompts.choose(
desc.toString(), val[key]['choices'] as Iterable);
} }
} }
} }

View file

@ -10,7 +10,8 @@ class MakeCommand extends Command {
String get name => 'make'; String get name => 'make';
@override @override
String get description => 'Generates common code for your project, such as projects and controllers.'; String get description =>
'Generates common code for your project, such as projects and controllers.';
MakeCommand() { MakeCommand() {
addSubcommand(new ControllerCommand()); addSubcommand(new ControllerCommand());

View file

@ -29,8 +29,8 @@ class ServiceGenerator {
void beforeService(BlockBuilder builder, String name, String lower) {} void beforeService(BlockBuilder builder, String name, String lower) {}
void applyToConfigureServer( void applyToConfigureServer(MethodBuilder configureServer, BlockBuilder block,
MethodBuilder configureServer, BlockBuilder block, String name, String lower) {} String name, String lower) {}
Expression createInstance( Expression createInstance(
MethodBuilder methodBuilder, String name, String lower) => MethodBuilder methodBuilder, String name, String lower) =>