2.1.2
This commit is contained in:
parent
d82f4d5fb1
commit
0e56cc808c
4 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,6 @@
|
|||
# 2.1.2
|
||||
* No migrations-by-default.
|
||||
|
||||
# 2.1.1
|
||||
* Edit the way `rename` runs, leaving no corner unturned.
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -2,7 +2,7 @@ author: Tobe O <thosakwe@gmail.com>
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue