Formatting
This commit is contained in:
parent
2aeeafeb93
commit
f05fbfad5e
6 changed files with 12 additions and 9 deletions
|
@ -121,9 +121,11 @@ class InstallCommand extends Command {
|
|||
var desc = val[key]['description'] ?? key;
|
||||
|
||||
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') {
|
||||
values[key] = prompts.choose(desc.toString(), val[key]['choices'] as Iterable);
|
||||
values[key] = prompts.choose(
|
||||
desc.toString(), val[key]['choices'] as Iterable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,7 +10,8 @@ class MakeCommand extends Command {
|
|||
String get name => 'make';
|
||||
|
||||
@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() {
|
||||
addSubcommand(new ControllerCommand());
|
||||
|
|
|
@ -29,8 +29,8 @@ class ServiceGenerator {
|
|||
|
||||
void beforeService(BlockBuilder builder, String name, String lower) {}
|
||||
|
||||
void applyToConfigureServer(
|
||||
MethodBuilder configureServer, BlockBuilder block, String name, String lower) {}
|
||||
void applyToConfigureServer(MethodBuilder configureServer, BlockBuilder block,
|
||||
String name, String lower) {}
|
||||
|
||||
Expression createInstance(
|
||||
MethodBuilder methodBuilder, String name, String lower) =>
|
||||
|
|
Loading…
Reference in a new issue