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

@ -1,3 +1,3 @@
library angel_cli;
export 'src/commands/commands.dart';
export 'src/commands/commands.dart';

View file

@ -5,4 +5,4 @@ export "key.dart";
export "init.dart";
export "install.dart";
export "make.dart";
export "rename.dart";
export "rename.dart";

View file

@ -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);
}
}
}

View file

@ -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());
@ -19,4 +20,4 @@ class MakeCommand extends Command {
addSubcommand(new TestCommand());
addSubcommand(new ServiceCommand());
}
}
}

View file

@ -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) =>

View file

@ -12,4 +12,4 @@ const List<ServiceGenerator> serviceGenerators = const [
const MongoServiceGenerator(),
const RethinkServiceGenerator(),
const CustomServiceGenerator()
];
];