From f05fbfad5eb3af699ffba04366a7a50d8873f249 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sat, 14 Jul 2018 18:43:10 -0400 Subject: [PATCH] Formatting --- lib/angel_cli.dart | 2 +- lib/src/commands/commands.dart | 2 +- lib/src/commands/install.dart | 6 ++++-- lib/src/commands/make.dart | 5 +++-- lib/src/commands/service_generators/generator.dart | 4 ++-- lib/src/commands/service_generators/service_generators.dart | 2 +- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lib/angel_cli.dart b/lib/angel_cli.dart index 4d3fa997..843a6734 100644 --- a/lib/angel_cli.dart +++ b/lib/angel_cli.dart @@ -1,3 +1,3 @@ library angel_cli; -export 'src/commands/commands.dart'; \ No newline at end of file +export 'src/commands/commands.dart'; diff --git a/lib/src/commands/commands.dart b/lib/src/commands/commands.dart index 08595fbc..3cd8fdb7 100644 --- a/lib/src/commands/commands.dart +++ b/lib/src/commands/commands.dart @@ -5,4 +5,4 @@ export "key.dart"; export "init.dart"; export "install.dart"; export "make.dart"; -export "rename.dart"; \ No newline at end of file +export "rename.dart"; diff --git a/lib/src/commands/install.dart b/lib/src/commands/install.dart index 50746b7d..2cff7b95 100644 --- a/lib/src/commands/install.dart +++ b/lib/src/commands/install.dart @@ -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); } } } diff --git a/lib/src/commands/make.dart b/lib/src/commands/make.dart index 0a71c5be..6f091e07 100644 --- a/lib/src/commands/make.dart +++ b/lib/src/commands/make.dart @@ -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()); } -} \ No newline at end of file +} diff --git a/lib/src/commands/service_generators/generator.dart b/lib/src/commands/service_generators/generator.dart index 23ec15e8..2e816ae5 100644 --- a/lib/src/commands/service_generators/generator.dart +++ b/lib/src/commands/service_generators/generator.dart @@ -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) => diff --git a/lib/src/commands/service_generators/service_generators.dart b/lib/src/commands/service_generators/service_generators.dart index 0dfd685e..813adc18 100644 --- a/lib/src/commands/service_generators/service_generators.dart +++ b/lib/src/commands/service_generators/service_generators.dart @@ -12,4 +12,4 @@ const List serviceGenerators = const [ const MongoServiceGenerator(), const RethinkServiceGenerator(), const CustomServiceGenerator() -]; \ No newline at end of file +];