Skip to content

Commit

Permalink
添加一些提示
Browse files Browse the repository at this point in the history
  • Loading branch information
2534290808 committed Apr 18, 2020
1 parent 0f40545 commit 142d1c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ main(List<String> arguments) {
// Platform.environment.forEach((k,v)=>print('$k $v'));
// 执行命令
// Process.run(executable, arguments);
print(green.wrap("${DateTime.now()}: The command is executing, please wait..."));
File pubspec = File("./pubspec.yaml");
var pubspecDoc = loadYaml(pubspec.readAsStringSync());
File packages = File('./.packages');
Expand Down Expand Up @@ -45,5 +46,8 @@ main(List<String> arguments) {
yamlString += allFonts;
}
flutterIconsFile.writeAsStringSync(yamlString);
var resDoc = loadYaml(yamlString);
var useFonts = List.of(resDoc['flutter']['fonts']).map((item)=>item['family']);
print('${DateTime.now()}: The font you are using is $useFonts');
print(green.wrap("${DateTime.now()}: Finish the work"));
}

0 comments on commit 142d1c0

Please sign in to comment.