diff --git a/CHANGELOG.md b/CHANGELOG.md index c660679..3ad85a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# 2.1.2 +* No migrations-by-default. + # 2.1.1 * Edit the way `rename` runs, leaving no corner unturned. diff --git a/lib/src/commands/make/model.dart b/lib/src/commands/make/model.dart index 8f5cf4d..ceda14d 100644 --- a/lib/src/commands/make/model.dart +++ b/lib/src/commands/make/model.dart @@ -20,7 +20,8 @@ class ModelCommand extends Command { ..addFlag('migration', abbr: 'm', help: 'Generate an angel_orm migration file.', - defaultsTo: true) + defaultsTo: false, + negatable: false) ..addFlag('orm', help: 'Generate angel_orm code.', negatable: false) ..addFlag('serializable', help: 'Generate angel_serialize annotations.', defaultsTo: true) diff --git a/lib/src/commands/rename.dart b/lib/src/commands/rename.dart index d0213b8..b62597e 100644 --- a/lib/src/commands/rename.dart +++ b/lib/src/commands/rename.dart @@ -5,7 +5,7 @@ import 'package:dart_style/dart_style.dart'; import 'package:glob/glob.dart'; import 'package:io/ansi.dart'; import 'package:prompts/prompts.dart' as prompts; -import 'package:pubspec_parse/pubspec_parse.dart'; +import 'package:recase/recase.dart'; import '../util.dart'; import 'pub.dart'; @@ -29,6 +29,8 @@ class RenameCommand extends Command { newName = prompts.get('Rename project to'); } + newName = new Recase(newName).snakeCase; + var choice = prompts.getBool('Rename the project to `$newName`?'); if (choice) { diff --git a/pubspec.yaml b/pubspec.yaml index f1888dd..8901043 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ author: Tobe O description: Command-line tools for the Angel framework. homepage: https://github.com/angel-dart/angel_cli name: angel_cli -version: 2.1.1 +version: 2.1.2 dependencies: analyzer: ">=0.32.0" args: ^1.0.0