This commit is contained in:
Tobe O 2018-12-31 13:27:34 -05:00
parent d82f4d5fb1
commit 0e56cc808c
4 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,6 @@
# 2.1.2
* No migrations-by-default.
# 2.1.1 # 2.1.1
* Edit the way `rename` runs, leaving no corner unturned. * Edit the way `rename` runs, leaving no corner unturned.

View file

@ -20,7 +20,8 @@ class ModelCommand extends Command {
..addFlag('migration', ..addFlag('migration',
abbr: 'm', abbr: 'm',
help: 'Generate an angel_orm migration file.', help: 'Generate an angel_orm migration file.',
defaultsTo: true) defaultsTo: false,
negatable: false)
..addFlag('orm', help: 'Generate angel_orm code.', negatable: false) ..addFlag('orm', help: 'Generate angel_orm code.', negatable: false)
..addFlag('serializable', ..addFlag('serializable',
help: 'Generate angel_serialize annotations.', defaultsTo: true) help: 'Generate angel_serialize annotations.', defaultsTo: true)

View file

@ -5,7 +5,7 @@ import 'package:dart_style/dart_style.dart';
import 'package:glob/glob.dart'; import 'package:glob/glob.dart';
import 'package:io/ansi.dart'; import 'package:io/ansi.dart';
import 'package:prompts/prompts.dart' as prompts; import 'package:prompts/prompts.dart' as prompts;
import 'package:pubspec_parse/pubspec_parse.dart'; import 'package:recase/recase.dart';
import '../util.dart'; import '../util.dart';
import 'pub.dart'; import 'pub.dart';
@ -29,6 +29,8 @@ class RenameCommand extends Command {
newName = prompts.get('Rename project to'); newName = prompts.get('Rename project to');
} }
newName = new Recase(newName).snakeCase;
var choice = prompts.getBool('Rename the project to `$newName`?'); var choice = prompts.getBool('Rename the project to `$newName`?');
if (choice) { if (choice) {

View file

@ -2,7 +2,7 @@ author: Tobe O <thosakwe@gmail.com>
description: Command-line tools for the Angel framework. description: Command-line tools for the Angel framework.
homepage: https://github.com/angel-dart/angel_cli homepage: https://github.com/angel-dart/angel_cli
name: angel_cli name: angel_cli
version: 2.1.1 version: 2.1.2
dependencies: dependencies:
analyzer: ">=0.32.0" analyzer: ">=0.32.0"
args: ^1.0.0 args: ^1.0.0