Skip to content

Commit 142d1c0

Browse files
committed
添加一些提示
1 parent 0f40545 commit 142d1c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/main.dart

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ main(List<String> arguments) {
99
// Platform.environment.forEach((k,v)=>print('$k $v'));
1010
// 执行命令
1111
// Process.run(executable, arguments);
12+
print(green.wrap("${DateTime.now()}: The command is executing, please wait..."));
1213
File pubspec = File("./pubspec.yaml");
1314
var pubspecDoc = loadYaml(pubspec.readAsStringSync());
1415
File packages = File('./.packages');
@@ -45,5 +46,8 @@ main(List<String> arguments) {
4546
yamlString += allFonts;
4647
}
4748
flutterIconsFile.writeAsStringSync(yamlString);
49+
var resDoc = loadYaml(yamlString);
50+
var useFonts = List.of(resDoc['flutter']['fonts']).map((item)=>item['family']);
51+
print('${DateTime.now()}: The font you are using is $useFonts');
4852
print(green.wrap("${DateTime.now()}: Finish the work"));
4953
}

0 commit comments

Comments
 (0)