Skip to content

Commit ef28876

Browse files
committed
1. Upgrade analyzer to latest version for Alex. (dog head)
2. Support new Syntax Sugar.
1 parent 1a224a0 commit ef28876

22 files changed

+1436
-1775
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 11.0.0
2+
3+
* Upgrade analyzer to latest version for Alex. (dog head)
4+
* Support new Syntax Sugar.
5+
16
## 10.2.0
27

38
* Add '--g-suffix' that Whether the generated file is end with .g

bin/main.dart

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,22 @@ import 'package:io/ansi.dart';
1010
import 'package:path/path.dart' as path;
1111

1212
const String argumentsFile = 'ff_annotation_route_commands';
13-
const String debugCommands =
14-
'--path example/ --super-arguments --null-safety --no-arguments-case-sensitive';
13+
1514
Future<void> main(List<String> arguments) async {
1615
bool runFromLocal = false;
17-
// debug
16+
// debug, run local example,
1817
// ignore: dead_code
19-
if (false) {
20-
arguments = debugCommands.split(' ');
21-
// ignore: dead_code
22-
if (true) {
23-
arguments.add('--fast-mode');
24-
// ignore: dead_code
25-
} else {
26-
arguments.add('--no-fast-mode');
18+
if (true) {
19+
String project = 'example';
20+
final io.File file =
21+
io.File(path.join(path.current, project, argumentsFile));
22+
if (file.existsSync()) {
23+
final String content = '${file.readAsStringSync()} --path $project';
24+
25+
arguments = content.split(' ');
26+
27+
runFromLocal = true;
2728
}
28-
// parseArgs(arguments);
29-
// if (Args().path.value != null) {
30-
// final io.File file =
31-
// io.File(path.join(Args().path.value!, argumentsFile));
32-
// if (file.existsSync()) {
33-
// final String content = file.readAsStringSync();
34-
// arguments.addAll(content.split(' '));
35-
// runFromLocal = true;
36-
// }
37-
// }
3829
}
3930

4031
if (arguments.isEmpty) {

0 commit comments

Comments
 (0)